Sub-Agents MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENTS_DIR | Yes | Absolute path to your agents folder where .md or .txt agent definitions are stored. | |
| AGENT_TYPE | Yes | The execution engine to use: 'cursor' (cursor-agent), 'claude' (claude CLI), 'gemini' (gemini CLI), or 'codex' (codex CLI). | |
| SESSION_DIR | No | Absolute path to the directory where session history files are stored. | |
| SESSION_ENABLED | No | Set to 'true' to enable session management for context continuity between executions. | false |
| EXECUTION_TIMEOUT_MS | No | How long agents can run before timing out in milliseconds. Default is 5 minutes (300000), max is 10 minutes. | 300000 |
| SESSION_RETENTION_DAYS | No | How long to keep session files based on last modification time in days. | 1 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| run_agent | Delegate complex, multi-step, or specialized tasks to an autonomous agent for independent execution with dedicated context (e.g., refactoring across multiple files, fixing all test failures, systematic codebase analysis, batch operations). Returns session_id in response metadata - reuse it in subsequent calls to maintain conversation context continuity across multiple agent executions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Agent List | List of available Claude Code sub-agents |
| Agent: README | Sub-Agents MCP Server |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prefrontal-systems/sub-agents-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server