Claude Wrap Mcp

io.github.Alex-Kaff由 GitHub 帳號 Alex-Kaff 發布v0.1.0更新於 Oct 24, 2026

MCP server that spawns and drives Claude Code sessions via claude-wrap.

發布方自己的服務:Claude Platform Docs

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

透過 claude-wrap 啟動並驅動真實 Claude Code 工作階段的 MCP 伺服器,讓助理執行並管理一組 Claude Code 子代理。

可以做什麼
  • 啟動、列出與停止 Claude Code 工作階段,包含已發現的以及 tmux 後端的工作階段
  • 送出提示並等待閒置,或不等待地推送原始文字、整行與按鍵
  • 檢視工作階段狀態:忙碌情形、模式、token、待處理的權限提示、待辦事項
  • 分頁瀏覽工作階段的工具呼叫,並依 id 取得單次呼叫的參數與結果
  • 讀取渲染後的對話紀錄快照,核准或拒絕待處理的權限提示
  • 驅動非互動式 claude -p 工作階段,回傳結構化 JSON、用量與費用
適用情境
適合讓助理平行編排多個 Claude Code 代理、把耗時的編碼任務交給獨立工作階段,或由監督代理監看並回應權限提示的情境。
執行需求
以 npm 套件 claude-wrap-mcp 形式透過 stdio 在本機執行。需要 Node 18 以上版本,且 claude CLI 位於 PATH 中。可選環境變數 CLAUDE_WRAP_BACKEND=tmux、CLAUDE_WRAP_TMUX_ON_EXIT 與 CLAUDE_WRAP_REGISTRY 用於設定 tmux 後端;附加到可見終端機視窗以 Windows 為主。
安裝前請注意
啟動的工作階段會執行真實的 Claude Code 代理,可能在指定的工作目錄中修改檔案並執行指令,而 claude_resolve_permission 可核准這些操作。claude_stop 會終止 tmux 工作階段。使用 tmux 後端時,除非設定 CLAUDE_WRAP_TMUX_ON_EXIT=kill,工作階段會在伺服器關閉後繼續執行,且任何伺服器都能接手。工作階段會消耗 Claude 用量並產生費用。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Claude Wrap Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

claude-wrap-mcp

[npm version] [license]

An MCP server that lets an agent spawn and drive real Claude Code sessions, so Claude Code can run a fleet of Claude Code sub-agents. Built on claude-wrap.

Needs Node ≥ 18 and the claude CLI on your PATH. Headless sessions work everywhere; attaching to visible terminal windows is Windows-first.

Install

sh
npm install -g claude-wrap-mcpclaude mcp add claude-wrap -- claude-wrap-mcp

Or in .mcp.json / claude_desktop_config.json:

json
{  "mcpServers": {    "claude-wrap": { "command": "npx", "args": ["-y", "claude-wrap-mcp"] }  }}

Tools

ToolWhat it does
claude_spawnStart a session in an absolute cwd. Returns a sessionId.
claude_askSend a prompt, wait for idle, return the transcript tail + parsed state.
claude_sendSend raw input (text / line / key) without waiting — for long tasks.
claude_statusBusy, mode, tokens, pending permission prompt, todos, last 5 tool names.
claude_tool_callsPage through the session's tool calls. Ids + names by default.
claude_tool_resultOne tool call by id: its args and result.
claude_snapshotThe rendered transcript lines.
claude_listEvery session, spawned here or discovered, with its backend, tmux attach command and lineage.
claude_resolve_permissionapprove / deny a pending permission prompt.
claude_stopShut down a session this server spawned or adopted (kills a tmux session).

There is a second family, claudep_*, that drives non-interactive claude -p sessions and returns structured JSON, tool calls, usage and cost.

Two things worth knowing:

  • Permission prompts are surfaced, not bypassed. When claude_ask or claude_status reports a permissionPrompt, answer it with claude_resolve_permission.
  • Tool calls are paged, not dumped. A status poll stays cheap because it carries only names; claude_tool_calls lists the rest and claude_tool_result fetches one call's output by id.

Sessions in tmux (Linux/macOS)

Set CLAUDE_WRAP_BACKEND=tmux in the server's environment (e.g. box-wide). claude_* sessions then run in tmux sessions, with no change to the MCP config:

  • they outlive this server: on shutdown it leaves them running, and anyone can tmux attach (the command is in claude_spawn / claude_list). Set CLAUDE_WRAP_TMUX_ON_EXIT=kill to stop them with the server instead;
  • any server adopts them: pass a tmux session name (as listed) as sessionId and the session is attached in-process, with full parsed state;
  • lineage: a session spawned from inside an agent that has TASK_ID / AGENT_ID set records that task and parent. claude_list shows it, and the registry entry (CLAUDE_WRAP_REGISTRY, one file per session when it's a directory) carries it for a supervisor.

See claude-wrap's README ("tmux backend") for the knobs and the entry format.

Develop

sh
pnpm installpnpm --filter claude-wrap-mcp buildpnpm --filter claude-wrap-mcp test

License

MIT © Alex Kaffetzakis

來源:README.md,提交 a883d9e

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Claude 整合