wrap_mcp_stdio
Wrap a stdio MCP server to ensure reliable restarts, using a Node wrapper that respawns the original command when killed.
Instructions
Wrap a stdio MCP server so it can be restarted reliably. Updates ~/.claude.json to launch a Node wrapper that spawns the original command and respawns it when killed. Requires restarting Claude CLI to take effect.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mcp_name": "<mcp_name>"
},
"name": "wrap_mcp_stdio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mcp_name | Yes | The name of the MCP server to wrap |