
xihuai18/claude-code-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
クロードコードは最小限のツールでMCPサーバーとして機能します.
概要
Claude Code (Claude Agent SDK) をツールとしてラップする MCP サーバーで、MCP クライアントが自動コーディングタスクの Claude コードを呼び出します。 ローカル使用用に設計されたMCPサーバーとクライアントは、同じマシン上で動作する予定です。 OpenCode/Codex スタイルのクライアントは、非同期のポーリングと明示的な許可決定を好むように特にうまく機能します。 Codex MCP の設計哲学によって刺激される — 最低の用具、最高の機能。 このパッケージは、安定したプログラムライブラリ API ではなく、MCP サーバー プロセス (npx @leo000001/claude-code-mcp) として実行するものです。 下記のすべてのドキュメントは、MCP 接続されたコーディングエージェントに表示されません。 - MCP ツール名、ツールの説明、入力フィールドの説明、およびクライアントが明示的に読み込む MCP リソース。 - この README.md, docs/DESIGN.md, AGENTS.md, クライアントやオーケストレータがモデルのコンテキストにコンテンツをコピーしない限り、他のリポジトリファイル.
概要(AI 翻訳)
Claude Code (Claude Agent SDK) をツールとしてラップする MCP サーバーで、MCP クライアントが自動コーディングタスクの Claude コードを呼び出します。 ローカル使用用に設計されたMCPサーバーとクライアントは、同じマシン上で動作する予定です。 OpenCode/Codex スタイルのクライアントは、非同期のポーリングと明示的な許可決定を好むように特にうまく機能します。
Codex MCP の設計哲学によって刺激される — 最低の用具、最高の機能。
このパッケージは、CLI-first: 安定したプログラムライブラリAPIとしてではなく、MCPサーバープロセス([npx @leo000001/claude-code-mcp])として動作するように意図されています。
可視性の境界
下記のすべてのドキュメントは、MCP 接続されたコーディングエージェントに表示されません。
-** MCP ツール名、ツールの説明、入力フィールドの説明、およびクライアントが明示的に読み込まれる MCP リソースに表示される。
-**この[README.md]、[docs/DESIGN.md]、 [[AGENTS.md]])、およびクライアントやオーケストがモデルコンテキストにコンテンツをコピーしない限り、他のリポジトリファイル.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
claude-code-mcp
MCP server that wraps Claude Code (Claude Agent SDK) as tools, enabling any MCP client to invoke Claude Code for autonomous coding tasks. Designed for local use — the MCP server and client are expected to run on the same machine. It works especially well with OpenCode/Codex-style clients that prefer async polling and explicit permission decisions.
Inspired by the Codex MCP design philosophy — minimum tools, maximum capability.
This package is CLI-first: it is intended to run as an MCP server process (npx @leo000001/claude-code-mcp), not as a stable programmatic library API.
Visibility Boundary
Not every piece of documentation below is visible to an MCP-connected coding agent.
- Usually visible to the agent: MCP tool names, tool descriptions, input field descriptions, and MCP resources that the client explicitly reads.
- Not safe to assume visible: this
README.md,docs/DESIGN.md,AGENTS.md, and other repository files unless the client or orchestrator copies that content into the model context. - Authoring rule: keep protocol-critical calling rules in tool descriptions and MCP resources first; mirror them in README for humans, but do not rely on README alone.
In practice, the most important runtime rules are duplicated in the claude_code* tool descriptions and the quickstart / gotchas / compat-report resources so async polling clients can succeed even when they never read this file.
Features
- 4 tools covering the full agent lifecycle: start, continue, check/poll, manage
- Read-only MCP resources for server info, internal tool catalog, and compatibility diagnostics
- Session management with resume and fork support
- Local settings loaded by default — automatically reads
~/.claude/settings.json,.claude/settings.json,.claude/settings.local.json, andCLAUDE.mdso the agent behaves like your local Claude Code CLI - Async permissions — allow/deny lists + explicit approvals via
claude_code_check - Custom subagents — define specialized agents per session
- Cost tracking — per-session turn and cost accounting
- Session cancellation via AbortController
- Auto-cleanup — 30-minute idle timeout for expired sessions
- Security — callers control tool permissions via allow/deny lists + explicit permission decisions
See CHANGELOG.md for release history.
Prerequisites
- Node.js >= 18 is required.
インストール
npx -y @leo000001/claude-code-mcp設定
{
"mcpServers": {
"claude-code": {
"command": "npx",
"args": ["-y", "@leo000001/claude-code-mcp"]
}
}
}