Sub Agents Mcp
by github.com/shinpr · v0.15.1 · updated Oct 22, 2026
MCP server for delegating tasks to specialized AI sub-agents across coding tools
Run it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
AGENTS_DIRrequiredAbsolute path to the directory containing agent definition files (.md or .txt)
AGENT_TYPErequiredType of AI CLI to use: 'cursor', 'claude', 'gemini', 'codex', 'command-code', 'glm', 'kimi', 'grok', 'antigravity', 'opencode', 'mcode', or 'pi'
AGENT_PERMISSIONApproval/sandbox level for sub-agents: 'read-only', 'safe-edit' (default), or 'yolo'
AGENT_MODELOptional model override applied to every sub-agent execution by this MCP server
AGENT_EFFORTOptional backend-specific reasoning effort or model variant. Supported by codex, claude, command-code, glm, kimi, grok, antigravity, opencode, mcode, and pi.
CURSOR_API_KEYsecretAPI key for cursor-agent authentication (used only when AGENT_TYPE=cursor; passed via env, never via CLI args)
CLI_API_KEYsecretProvider API key for AGENT_TYPE=glm or kimi (passed to the claude binary via env, never via CLI args). Restart/reconnect the MCP server after changing it.
EXECUTION_TIMEOUT_MSAgent execution timeout in milliseconds, as a positive whole number (default: 300000). The server refuses to start on an invalid value such as "5min".
SESSION_ENABLEDEnable session management to maintain execution history across agent calls (default: false)
SESSION_DIRDirectory path for storing session files (default: .mcp-sessions in current working directory)
SESSION_RETENTION_DAYSNumber of days to retain session history before automatic cleanup (default: 1)
AGENTS_SETTINGS_PATHPath to CLI settings file/directory. Claude: --settings arg, Cursor: CURSOR_CONFIG_DIR, Codex: CODEX_HOME. GLM/Kimi/Gemini/Grok/Antigravity/OpenCode/Command Code/MiniMax Code/Pi not supported.
More from github.com/shinpr
More MCP servers
rutter
github.com/shinytoyrobots
Recall past decisions and the notes your AI sessions cited, from a local markdown folder.
Codebase Chat
github.com/shinzarou-eng
Local-first codebase intelligence: cited answers, audits, reports. EN/FR.
Shipmail
github.com/shipmail-to
Modern email for your business. Inboxes, calendars, newsletters and an API for your agents.
Laytime Calculator Pro
github.com/shipping-ship-it
AI-powered laytime, demurrage and despatch calculator for chartering professionals.
Shipvo
github.com/shipvo
Open a React Native app in a simulated phone: read the screen, tap, type, set device state.
Oh My Share
github.com/shisongsong
Publish HTML/code from your agent to openanthropic.com and get a shareable link.