XC

xihuai18/claude-code-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

21 stars 8 forks 품질 70 트렌드 0MIT

Claude Code는 최소 도구로 MCP 서버 역할을 합니다.

개요

도구로 Claude Code (Claude Agent SDK)를 감싸는 MCP 서버는 자율 코딩 작업을 위한 Claude Code를 호출할 수 있습니다. 로컬 사용을위한 설계 - MCP 서버 및 클라이언트는 동일한 기계에서 실행 할 것으로 예상됩니다. 그것은 특히 OpenCode / Codex-style 클라이언트와 잘 작동하여 async polling 및 명시 적 허가 결정을 선호합니다. Codex MCP 디자인 철학에 영감을 주는 - 최소 도구, 최대 기능. 이 패키지는 : MCP 서버 프로세스 (npx @leo000001/claude-code-mcp)로 실행하는 것입니다. 안정적인 프로그래밍 라이브러리 API. 아래의 모든 문서는 MCP 연결 코딩 에이전트에 표시됩니다. - MCP 도구 이름, 도구 설명, 입력 필드 설명 및 MCP 리소스는 클라이언트가 명시적으로 읽습니다. - 이 README.md, docs/DESIGN.md, AGENTS.md 및 클라이언트 또는 오케스트라가 모델 컨텍스트에 콘텐츠를 복사하지 않는 다른 저장소 파일.

개요(AI 번역)

도구로 Claude Code (Claude Agent SDK)를 감싸는 MCP 서버는 자율 코딩 작업을 위한 Claude Code를 호출할 수 있습니다. 로컬 사용을위한 설계 - MCP 서버 및 클라이언트는 동일한 기계에서 실행 할 것으로 예상됩니다. 그것은 특히 OpenCode / Codex-style 클라이언트와 잘 작동하여 async polling 및 명시 적 허가 결정을 선호합니다.

Codex MCP 디자인 철학에 영감을 주는 - 최소 도구, 최대 기능.

이 패키지는 CLI-first: 그것은 MCP 서버 프로세스 (npx @leo000001/claude-code-mcp])로 실행하는 것입니다, 안정적인 프로그래밍 라이브러리 API.

가시성 경계

아래의 모든 문서는 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, and CLAUDE.md so 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.
GitHub에서 전체 README 보기

설치

npx -y @leo000001/claude-code-mcp
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "claude-code": { "command": "npx", "args": ["-y", "@leo000001/claude-code-mcp"] } } }