io.github.Alex-Kaff/claude-wrap-mcp
MCP server that spawns and drives Claude Code sessions via claude-wrap.
Que pouvez-vous faire avec io.github.Alex-Kaff/claude-wrap-mcp ?
- Permission prompts are surfaced, not bypassed. When
claude_askor - Tool calls are paged, not dumped. A status poll stays cheap because it
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
claude-wrap-mcpclaude mcp add claude-wrap-mcp -- npx -y claude-wrap-mcp@0.1.0
{
"mcpServers": {
"claude-wrap-mcp": {
"command": "npx",
"args": [
"-y",
"claude-wrap-mcp@0.1.0"
]
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
claude-wrap-mcp
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
npm install -g claude-wrap-mcp
claude mcp add claude-wrap -- claude-wrap-mcp
Or in .mcp.json / claude_desktop_config.json:
{
"mcpServers": {
"claude-wrap": { "command": "npx", "args": ["-y", "claude-wrap-mcp"] }
}
}
Tools
| Tool | What it does |
|---|---|
claude_spawn | Start a session in an absolute cwd. Returns a sessionId. |
claude_ask | Send a prompt, wait for idle, return the transcript tail + parsed state. |
claude_send | Send raw input (text / line / key) without waiting — for long tasks. |
claude_status | Busy, mode, tokens, pending permission prompt, todos, last 5 tool names. |
claude_tool_calls | Page through the session's tool calls. Ids + names by default. |
claude_tool_result | One tool call by id: its args and result. |
claude_snapshot | The rendered transcript lines. |
claude_list | Every session, spawned here or discovered, with its backend, tmux attach command and lineage. |
claude_resolve_permission | approve / deny a pending permission prompt. |
claude_stop | Shut 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_askorclaude_statusreports apermissionPrompt, answer it withclaude_resolve_permission. - Tool calls are paged, not dumped. A status poll stays cheap because it
carries only names;
claude_tool_callslists the rest andclaude_tool_resultfetches 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 inclaude_spawn/claude_list). SetCLAUDE_WRAP_TMUX_ON_EXIT=killto stop them with the server instead; - any server adopts them: pass a tmux session name (as listed) as
sessionIdand the session is attached in-process, with full parsed state; - lineage: a session spawned from inside an agent that has
TASK_ID/AGENT_IDset records that task and parent.claude_listshows 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
pnpm install
pnpm --filter claude-wrap-mcp build
pnpm --filter claude-wrap-mcp test
License
MIT © Alex Kaffetzakis
Questions fréquentes
Qu'est-ce que io.github.Alex-Kaff/claude-wrap-mcp ?
MCP server that spawns and drives Claude Code sessions via claude-wrap.
Comment installer io.github.Alex-Kaff/claude-wrap-mcp ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add claude-wrap-mcp -- npx -y claude-wrap-mcp@0.1.0. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.Alex-Kaff/claude-wrap-mcp ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.Alex-Kaff/claude-wrap-mcp est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.Alex-Kaff/claude-wrap-mcp ?
Il est publié par Alex-Kaff. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.