Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
MCP servers/AI & LLM Tools
shinpr avatar

Sub Agents Mcp

shinpr/sub-agents-mcp

Brings Claude Code's sub-agent workflow to any MCP client by letting you define task-specific AI assistants in markdown files. Point it at a folder of agent definitions (like "code-reviewer" or "test-writer"), configure which backend to use (Cursor CLI, Claude Code, Codex, or Gemini CLI), and invoke agents by name from any MCP-compatible tool. Each agent is a self-contained markdown file with a task description and completion criteria. The server handles session management and routes execution through your chosen CLI backend, so you can share the same agent definitions across Cursor, Claude Desktop, Windsurf, or other MCP clients. Requires one of the supported CLI tools installed and authenticated.

GitHub stars
84
last updated
May 7, 2026
View on GitHubSave

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Configuration

AGENTS_DIR*

Absolute path to the directory containing agent definition files (.md or .txt)

AGENT_TYPE*

Type of AI CLI to use: 'cursor', 'claude', 'gemini', or 'codex'

AGENT_PERMISSION

Approval/sandbox level for sub-agents: 'read-only', 'safe-edit' (default), or 'yolo'

CURSOR_API_KEYsecret

API key for cursor-agent authentication (used only when AGENT_TYPE=cursor; passed via env, never via CLI args)

EXECUTION_TIMEOUT_MS

Maximum execution time for agents in milliseconds (default: 300000, max: 600000)

SESSION_ENABLED

Enable session management to maintain execution history across agent calls (default: false)

SESSION_DIR

Directory path for storing session files (default: .mcp-sessions in current working directory)

SESSION_RETENTION_DAYS

Number of days to retain session history before automatic cleanup (default: 7)

AGENTS_SETTINGS_PATH

Path to CLI settings file/directory. Claude: --settings arg, Cursor: CURSOR_CONFIG_DIR, Codex: CODEX_HOME. Gemini not supported.

Readme

Sub-Agents MCP Server

npm version License: MIT

Run reusable coding agents from any MCP-compatible client.

Write a reviewer, test writer, or investigator in Markdown, then ask your assistant to use it. The MCP server runs that agent with the coding CLI you choose and returns the result to the same conversation.

What You Can Do

  • Delegate code review, test writing, investigation, and documentation to focused agents
  • Reuse the same agent definitions across MCP clients with one shared backend and model configuration
  • Continue the same agent across multiple calls for longer work

Quick Start

You need Node.js 22 or later, an MCP-compatible client, and one supported coding CLI installed and signed in. This example uses Codex.

1. Create an Agent

Create an agents folder anywhere on your machine, then add code-reviewer.md:

# Code Reviewer

Review code for bugs and maintainability issues.

## Task

- Find concrete problems in the requested changes
- Explain why each problem matters
- Point to the affected code

## Done When

- All requested files have been reviewed
- Findings include evidence and suggested next steps

The filename becomes the agent name: code-reviewer.md becomes code-reviewer.

2. Add the MCP Server

Add the server to your client's MCP configuration. Replace AGENTS_DIR with the absolute path to the folder you created.

{
  "mcpServers": {
    "sub-agents": {
      "command": "npx",
      "args": ["-y", "sub-agents-mcp"],
      "env": {
        "AGENTS_DIR": "/absolute/path/to/agents",
        "AGENT_TYPE": "codex"
      }
    }
  }
}

Restart or reconnect your MCP client after saving the configuration.

3. Run the Agent

Ask your assistant:

Use the code-reviewer agent to review the authentication changes.

Your assistant runs the agent with Codex and returns the review to the conversation.

Examples

Use the test-writer agent to add unit tests for the auth module.
Use the bug-investigator agent to find the cause of the failed checkout requests.
Use the doc-writer agent to document the public API changes.

Name both the agent and the work you want it to do.

When the MCP Server Fits

Use the MCP server when you want to share the same agents across MCP clients while keeping backend and model configuration in one place.

If you prefer a lighter installation or want each agent to choose its own backend and model, see Sub-Agents Skills.

Supported Backends

Set AGENT_TYPE to the backend you already use:

AGENT_TYPEBackendCommand
codexCodexcodex
claudeClaude Codeclaude
cursorCursor CLIcursor-agent
command-codeCommand Codecommand-code
glmGLM (Z.ai)claude
kimiKimiclaude
grokGrok Buildgrok
antigravityGoogle Antigravityagy 1.1.12+
geminiGemini CLI (compatibility)gemini
opencodeOpenCodeopencode
mcodeMiniMax Codemcode
piPipi

The selected CLI must be installed and configured before the MCP server starts.

GLM and Kimi require CLI_API_KEY in the MCP server environment. Other backends use the CLI's existing authentication.

For Google models, prefer Antigravity. Gemini CLI remains available for existing enterprise, API key, or Vertex AI configurations.

Shared Agent Settings

Set AGENT_MODEL to use one model for every agent. Omit it to use the backend's default.

AGENT_PERMISSION controls what agents may do:

  • read-only — review and investigation
  • safe-edit — edits allowed without approval (default)
  • yolo — unrestricted execution

If an agent reports that an action was blocked, choose a less restrictive mode.

How strictly each level is enforced depends on the backend, so treat it as guidance rather than a security boundary.

Continue Work Across Calls

Set SESSION_ENABLED to "true" when you want an agent to remember earlier calls and continue a longer task. Your assistant must reuse the returned session_id on the next call to continue that session.

If It Does Not Start

  • Run the selected backend command directly and confirm that it is installed and signed in
  • Make sure AGENTS_DIR is an absolute path and contains at least one .md or .txt file
  • Restart or reconnect the MCP client after changing its configuration

License

MIT

Details

Repository
github.com/shinpr/sub-agents-mcp
Category
AI & LLM Tools
Package
sub-agents-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

More from shinpr

  • Mcp Image116
  • Mcp Local Rag307

Related AI & LLM Tools MCP servers

View all
1ldclabs avatarKipldclabs/kipKnowledge Graphs to enable memory persistence, knowledge evolution, explainable interaction.75stars
2pulsemcp avatarLangfusepulsemcp/mcp-serversMCP server for Langfuse LLM observability — trace and observation analysis.0stars
3pulsemcp avatarSshpulsemcp/mcp-serversMCP server for SSH remote server management with SSH agent authentication support.0stars
4pulsemcp avatarSvg Tracerpulsemcp/mcp-serversMCP server for converting bitmap images to SVG vector graphics using potrace tracing.0stars
5sverklo avatarSverklosverklo/sverkloLocal-first MCP code intelligence: 37 tools — hybrid search, blast-radius, diff review, memory.71stars
6nameetp avatarpdfmuxnameetp/pdfmuxPDF-to-Markdown router. Per-page backend selection + confidence scoring for RAG ingestion.67stars