mirror of
https://github.com/agentclientprotocol/claude-agent-acp.git
synced 2026-11-17 23:01:26 +00:00
## Summary Updates `@anthropic-ai/claude-agent-sdk` from 0.3.325 to 0.3.326, which bundles Claude Code 2.1.326. The new version needs one adapter change, included here: the adapter now sets the SDK's new `mcpServersDelivery` option. Its value keeps today's behavior. A follow-up PR changes the value, so that MCP servers no longer reach Claude Code on its command line. Also bumps these dev dependencies: `@anthropic-ai/sdk` 1.8.0 → 1.9.0, and `@typescript-eslint/eslint-plugin` and `@typescript-eslint/parser` 8.72.2 → 8.73.0. `npm update` brings the in-range lockfile bumps: `hono` 4.13.18 → 4.13.19, `@hono/node-server` 2.1.8 → 2.1.9, `router` 2.2.0 → 2.3.0, `ignore` 7.0.14 → 7.0.16 and `@tybys/wasm-util` 0.10.4 → 0.10.5. typescript-eslint 8.73.0 depends on `minimatch` 11, so the lockfile now holds one `minimatch`, 11.0.9, in place of 10.2.6 and two nested copies of 11.0.8. That clears the advisory GHSA-g3hv-75wg-m249: `npm audit` finds nothing. TypeScript stays at 6.0.3: 7.0.2 is out, but `@typescript-eslint/parser` 8.73.0 still requires `typescript <6.1.0`. ## `mcpServersDelivery` SDK 0.3.326 adds the option `mcpServersDelivery`, which says how a session's MCP servers reach Claude Code: - `'argv'`, the default: in one `--mcp-config` flag. A server's `env` and `headers` are then on Claude Code's command line. - `'initialize'`: over stdin, in the initialize request. Without a change, the new SDK breaks the adapter in two ways: - The build fails. `OPTION_REBUILDS_SESSION` in `src/v1/session-fingerprint.ts` must classify every SDK option. The new one is read when the process starts, so a changed value rebuilds the query. - The SDK prints a `DeprecationWarning` (`CLAUDE_SDK_MCP_SERVERS_ARGV_DEPRECATED`) on stderr, once per process, when an app names the Claude Code to start, a session has MCP servers and the option is unset. The adapter always passes `pathToClaudeCodeExecutable`, so every adapter process with an MCP server would print it. The adapter now sets `'argv'`, so MCP servers reach Claude Code as they did before. The value is one constant, `MCP_SERVERS_DELIVERY` in `src/claude-cli.ts`, which both cores set before the client's options: a client's `_meta.claudeCode.options.mcpServersDelivery` wins. ## Changelog review Read the SDK changelog for 0.3.326 and the Claude Code changelog for 2.1.326. No other entry needs a code change: - **Types.** Besides `mcpServersDelivery`: doc text, new optional members, and `BUILTIN_TOOL_NAMES` lists `SetGoal` in place of `ProposeGoal`. The adapter names neither tool. - **A warning for a tool list entry that does not look like a complete rule**, on stderr and as a `system/informational` message. The adapter adds only `AskUserQuestion` to `disallowedTools` and passes the `claude_code` preset or `[]` as `tools`, so only a client's own list can cause it. Both cores send an `informational` warning to the client as a notice. - **The `managed_mcp_arrived` warning** is an `informational` warning too, and is sent the same way. - **Some tool calls now ask in bypass permissions mode.** Such a call reaches `canUseTool`. Neither core allows a call there because of the session's mode, so the user is asked. - **Bash permission checks ask before more commands.** These reach `canUseTool` as any other request. - **`modelUsage` and `total_cost_usd` count billed permission classifier calls and calls that were stopped or cut.** Both cores take the row of the turn's model and the increment over the last reading, so a new row or a larger total needs no change. - **`message_uuid` on `cancel_async_message` responses.** `Query.cancelAsyncMessage()` still returns only `cancelled`, and the adapter does not read the response. - **`rewindFiles()` skips some files when the sandbox is on.** The adapter only calls it with `dryRun: true`, for the file-change report. - **`setMcpServers()`, `resumeSessionAt` and startup hook fixes.** Picked up as they are: the adapter has no workaround for the old behavior. - **`getSessionInfo` and `listSessions`** read a transcript as before: a differential run of 0.3.325 against 0.3.326 over 4,500 generated transcripts gave no mismatch. The run is not part of this PR. - **`@anthropic-ai/sdk` 1.9.0.** The adapter uses its types only. The release changes API resources and tool helpers that the adapter does not use. - **typescript-eslint 8.73.0.** One new rule, which the config does not turn on, and a narrower report location for `consistent-type-imports`. `npm run lint` reports nothing. ## Not in this PR - `mcpServersDelivery: 'initialize'`, which keeps a server's `env` and `headers` off Claude Code's command line. It changes how a session with MCP servers starts, and a Claude Code older than 2.1.326 cannot take it, so it is its own PR, on top of this one. ## Testing - `npm run build`, `npm run check`, `npm run test:run` (4,283 tests pass) - Real CLI: the integration tests (`RUN_INTEGRATION_TESTS=true`, with `CLAUDE_CODE_ENTRYPOINT` unset), 914 tests pass. They include an MCP server served over ACP, the output of a foreground Bash command and the model list. - Real CLI, without a prompt: with `'argv'`, Claude Code 2.1.326 and 2.1.323 both start a session with a stdio and an HTTP MCP server, and the SDK prints no deprecation warning.
93 lines
2.5 KiB
JSON
93 lines
2.5 KiB
JSON
{
|
|
"name": "@agentclientprotocol/claude-agent-acp",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"version": "0.107.3",
|
|
"description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
|
|
"main": "dist/lib.js",
|
|
"types": "dist/lib.d.ts",
|
|
"bin": {
|
|
"claude-agent-acp": "dist/index.js"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/lib.d.ts",
|
|
"import": "./dist/lib.js"
|
|
},
|
|
"./package.json": "./package.json"
|
|
},
|
|
"files": [
|
|
"dist/",
|
|
"!dist/tests/",
|
|
"!dist/binary-entry.*",
|
|
"README.md",
|
|
"LICENSE",
|
|
"package.json"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"build:binary": "node scripts/build-binary.mjs",
|
|
"smoke:binary": "node scripts/smoke-binary.mjs",
|
|
"start": "node dist/index.js",
|
|
"dev": "npm run build && npm run start",
|
|
"example:simple-client": "node --experimental-strip-types --disable-warning=ExperimentalWarning examples/simple-client.ts",
|
|
"lint": "eslint src --ext .ts",
|
|
"lint:fix": "eslint src --ext .ts --fix",
|
|
"format": "prettier --write .",
|
|
"format:check": "prettier --check .",
|
|
"check": "npm run lint && npm run format:check",
|
|
"release:preflight": "bash scripts/release-preflight.sh",
|
|
"test": "vitest",
|
|
"test:integration": "RUN_INTEGRATION_TESTS=true vitest run",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
"keywords": [
|
|
"claude",
|
|
"acp",
|
|
"agent",
|
|
"anthropic",
|
|
"typescript",
|
|
"sdk",
|
|
"code"
|
|
],
|
|
"homepage": "https://github.com/agentclientprotocol/claude-agent-acp#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/agentclientprotocol/claude-agent-acp/issues"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/agentclientprotocol/claude-agent-acp.git"
|
|
},
|
|
"author": "Zed Industries",
|
|
"license": "Apache-2.0",
|
|
"engines": {
|
|
"node": ">=22"
|
|
},
|
|
"dependencies": {
|
|
"@agentclientprotocol/sdk": "2.7.0",
|
|
"@anthropic-ai/claude-agent-sdk": "0.3.326",
|
|
"diff": "9.0.0",
|
|
"zod": "4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@anthropic-ai/sdk": "1.9.0",
|
|
"@eslint/js": "10.0.1",
|
|
"@tsconfig/node22": "22.0.7",
|
|
"@types/node": "26.6.6",
|
|
"@typescript-eslint/eslint-plugin": "8.73.0",
|
|
"@typescript-eslint/parser": "8.73.0",
|
|
"ajv": "8.20.0",
|
|
"ajv-formats": "3.0.1",
|
|
"eslint": "10.15.0",
|
|
"eslint-config-prettier": "10.1.8",
|
|
"globals": "17.14.0",
|
|
"prettier": "3.10.1",
|
|
"typescript": "6.0.3",
|
|
"vitest": "5.1.0"
|
|
}
|
|
}
|