/** * script 工具入口:MCP schema 定义 + action 路由。 * * 各 action 实现拆分至 ./script/ 目录(2026-09-20 可维护性批7,纯机械搬迁零行为变更): * read.ts / write.ts / edit.ts / test-gen.ts / execute.ts / project-replace.ts * 跨 action 共享守卫(沙箱扫描/editor 写守卫/class_name import 重建)在 ./script/shared.ts。 * * SECURITY WARNING: execute_gdscript 的 GDScript 有完整系统访问权限(FileAccess、 * DirAccess、OS.execute = arbitrary shell)。scanGdscriptSandbox 提供黑名单以拦截误用, * 不是安全边界——正则无法穷尽间接/反射绕过。本地单用户 MCP 可接受;多用户或不可信 * 输入场景用容器/VM 隔离 + GODOT_MCP_ALLOW_UNSAFE=false。 */ import type { Tool } from "@modelcontextprotocol/server"; import type { ToolContext, ToolResult } from '../types.js'; import type { RiskLevel } from '../core/tool-registry.js'; export declare function getToolDefinitions(): Tool[]; export declare function handleTool(name: string, args: Record, ctx: ToolContext): Promise; export declare const TOOL_META: Record; }>;