diff --git a/package-lock.json b/package-lock.json index 5d7ced98..2b37a5ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@anthropic-ai/claude-code": "^1.0.92", "@modelcontextprotocol/sdk": "^1.17.4", "@types/express": "^5.0.3", - "@zed-industries/agent-client-protocol": "0.1.0", + "@zed-industries/agent-client-protocol": "0.1.2", "express": "^5.1.0", "minimist": "^1.2.8", "uuid": "11.1.0" @@ -1496,10 +1496,10 @@ } }, "node_modules/@zed-industries/agent-client-protocol": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@zed-industries/agent-client-protocol/-/agent-client-protocol-0.1.0.tgz", - "integrity": "sha512-HRGL1UYoewZpcvd1Yiaw57WMTVk0iQsYkk/N/r++fT4dfLItGW1ZT0mZ3++dFFK6g799KWeQOb+iFxL8wuRlMw==", - "license": "MIT", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@zed-industries/agent-client-protocol/-/agent-client-protocol-0.1.2.tgz", + "integrity": "sha512-A1RCN7Uf09vngbhBVLiZENenKYOYD2OGiILLGXPaSBloDbem8xmLaDmrKQuYl0kjLJ1DcWmVaHUv97n1l5vJ6w==", + "license": "Apache-2.0", "dependencies": { "zod": "^3.0.0" } diff --git a/package.json b/package.json index 9b13b7bc..c8e9b896 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@anthropic-ai/claude-code": "^1.0.92", "@modelcontextprotocol/sdk": "^1.17.4", "@types/express": "^5.0.3", - "@zed-industries/agent-client-protocol": "0.1.0", + "@zed-industries/agent-client-protocol": "0.1.2", "express": "^5.1.0", "minimist": "^1.2.8", "uuid": "11.1.0" diff --git a/src/acp-agent.ts b/src/acp-agent.ts index 219d833d..f4e650d7 100644 --- a/src/acp-agent.ts +++ b/src/acp-agent.ts @@ -89,7 +89,6 @@ export class ClaudeAcpAgent implements Agent { options: { cwd: params.cwd, mcpServers, - executableArgs: ["--debug"], allowedTools: ["mcp__acp__read"], disallowedTools: ["Read"], strictMcpConfig: true, diff --git a/src/mcp-server.ts b/src/mcp-server.ts index 9915f789..8de16642 100644 --- a/src/mcp-server.ts +++ b/src/mcp-server.ts @@ -63,7 +63,7 @@ export function createMcpServer( { type: "text", text: - content + + content.content + ` diff --git a/src/tests/example.test.ts b/src/tests/example.test.ts index 18c792c1..4aa24ab5 100644 --- a/src/tests/example.test.ts +++ b/src/tests/example.test.ts @@ -24,8 +24,8 @@ describe("ACP subprocess integration", () => { beforeAll(async () => { // Start the subprocess - child = spawn("npm", ["run", "dev"], { - stdio: ["pipe", "pipe", "pipe"], + child = spawn("npm", ["run", "--silent", "dev"], { + stdio: ["pipe", "pipe", "inherit"], env: process.env, }); }); @@ -46,7 +46,7 @@ describe("ACP subprocess integration", () => { throw new Error("Method not implemented."); } async sessionUpdate(params: SessionNotification): Promise { - console.log(params); + console.error(params); } writeTextFile( params: WriteTextFileRequest, @@ -64,7 +64,7 @@ describe("ACP subprocess integration", () => { return new TestClient(agent); }, nodeToWebWritable(child.stdin!), - nodeToWebReadable(child.stdout!) as any, + nodeToWebReadable(child.stdout!), ); let session = await connection.newSession({ cwd: "./", mcpServers: [] });