diff --git a/src/server.ts b/src/server.ts index 02371a7..6cb5315 100644 --- a/src/server.ts +++ b/src/server.ts @@ -1350,16 +1350,16 @@ export async function startMcpServer(config: ServerConfig): Promise { s.tool( 'mirror_export', - "Walks the CODESYS project tree and writes one .st file per code-bearing object into a filesystem mirror, preserving the project tree as nested directories. Programs / Function Blocks / Functions / Methods / Properties / DUTs / GVLs / Interfaces all become text files; structural nodes (Devices, Applications, Folders) become directories. Each file carries a header comment with its original CODESYS project path so a future write-back tool can map it back to set_pou_code's pouPath. Read-only -- does NOT modify the CODESYS project. UTF-8 output. If mirrorRoot is omitted, defaults to '/MCP/mirror'.", + "Walks the CODESYS project tree and writes one .st file per code-bearing object into a filesystem mirror, preserving the project tree as nested directories. Programs / Function Blocks / Functions / Methods / Properties / DUTs / GVLs / Interfaces all become text files; structural nodes (Devices, Applications, Folders) become directories. Each file carries a header comment with its original CODESYS project path so a future write-back tool can map it back to set_pou_code's pouPath. Read-only -- does NOT modify the CODESYS project. UTF-8 output. If mirrorRoot is omitted, defaults to '/mcp-mirror'.", { projectFilePath: z.string().describe("Path to the project file."), - mirrorRoot: z.string().optional().describe("Filesystem path where the mirror tree gets written. If omitted, defaults to '/MCP/mirror'. Created automatically if missing; existing files at the same paths are overwritten."), + mirrorRoot: z.string().optional().describe("Filesystem path where the mirror tree gets written. If omitted, defaults to '/mcp-mirror'. Created automatically if missing; existing files at the same paths are overwritten."), }, async (args: { projectFilePath: string; mirrorRoot?: string }) => { const escaped = resolvePath(args.projectFilePath, workspaceDir); const mirrorRoot = args.mirrorRoot ? resolvePath(args.mirrorRoot, workspaceDir) - : path.join(path.dirname(escaped), 'MCP', 'mirror'); + : path.join(path.dirname(escaped), 'mcp-mirror'); const script = scriptManager.prepareScriptWithHelpers( 'mirror_export', {