@archkk/acp-claude
v0.1.0
Published
ACP adapter for Claude Code print mode
Downloads
154
Readme
MisterMorph ACP Claude Adapter
This package exposes an ACP stdio adapter for Claude Code.
Current shape:
- transport:
stdio - ACP methods:
initializeauthenticate(no-op)session/newsession/set_config_optionsession/promptsession/cancel
- backend:
claude -p --output-format stream-json
Current limits:
- no session persistence
- no MCP passthrough
- no interactive approval flow
- the adapter does not bridge Claude tool calls back into ACP file or terminal callbacks
Run it directly:
node ./packages/claude/src/index.mjsOr from the repository root:
npm run run:claudeExample ACP profile:
acp:
agents:
- name: "claude"
command: "node"
args: ["./packages/claude/src/index.mjs"]
env: {}
cwd: "."
read_roots: ["."]
write_roots: ["."]
session_options:
permission_mode: "dontAsk"
allowed_tools: ["Read", "Edit", "Write", "Bash", "Glob", "Grep"]Notes:
bare: trueis optional, but it is not safe as a default when you rely on Claude.ai login.- Claude Code bare mode skips OAuth and keychain reads, so Claude.ai login usually requires
bare: false.
Optional environment variables:
MISTERMORPH_CLAUDE_COMMAND- override backend executable, default
claude
- override backend executable, default
MISTERMORPH_CLAUDE_ARGS- extra backend args, whitespace-split, inserted before print-mode flags
Test:
npm run test:claude