Task Agent MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Task Agent MCP Server
A flexible MCP server that lets you create specialized AI agents as individual tools in Claude. Each agent appears as its own tool with custom prompts, models, and capabilities.
v4.1.0 - New CLI flags: --tools, --name, --disallowed-tools, --mcp-config
🎯 What is This?
Task Agent MCP Server turns markdown files into specialized AI agents. Each agent:
Appears as a separate tool in Claude
Has its own system prompt and personality
Can use specific Claude models (opus, sonnet, haiku)
Maintains conversation context (optional)
Access specific directories and resources
Related MCP server: Sub-Agents MCP Server
🚀 Quick Install (2 Steps)
Step 1: Install the package
# Requires Python 3.11 or higher
python3.11 -m pip install task-agents-mcpStep 2: Add to Claude Code
claude mcp add task-agent task-agent -s projectThat's it! ✅ The server comes with an example agent template to get you started.
💬 How to Use
Your First Agent
The package includes task-agents/example-agent.md as a template. Try it:
"Use example_agent to explain how task agents work"Creating Your Own Agents
Copy the example template:
cp task-agents/example-agent.md task-agents/my-agent.mdEdit
my-agent.mdto customize:Agent name and description
System prompt (the agent's personality and instructions)
Tools it can use
Model (opus for complex reasoning, sonnet for implementation)
Use your new agent:
"Use my_agent to [your task]"
📝 Agent Configuration
Each agent is a markdown file with YAML frontmatter:
---
# REQUIRED FIELDS
agent-name: My Assistant
description: Brief description of what this agent does
tools: Read, Write, Edit, Glob, Grep, Bash
model: sonnet
cwd: .
# OPTIONAL FIELDS
optional:
# Enable session memory (remembers context between calls)
resume-session: true 10 # Remember last 10 exchanges
# Additional directories the agent can access
resource_dirs: ./docs, ./data
# Tools to deny (agent won't have access to these)
disallowed-tools: WebSearch, WebFetch
# Give the agent access to external MCP servers
mcp-config: ./mcp-servers.json
---
System-prompt:
You are a specialized assistant that...
[Your detailed instructions here]Available Tools
Agents can use any combination of these tools:
File Operations: Read, Write, Edit, MultiEdit
Search: Glob, Grep, LS
Shell: Bash, BashOutput, KillBash
Web: WebSearch, WebFetch
Other: TodoWrite, NotebookEdit, Task
Available Models
opus: Best for complex reasoning, planning, analysis
sonnet: Best for implementation, coding, execution
haiku: Fast responses for simple tasks
🖥️ Also Works with Claude Desktop
Add to your Claude Desktop config:
{
"mcpServers": {
"task-agent": {
"command": "task-agent",
"env": {
"TASK_AGENTS_PATH": "/path/to/your/agents"
}
}
}
}💡 Example Agents
Code Review Agent
---
agent-name: Code Reviewer
description: Reviews code for bugs, performance, and best practices
tools: Read, Grep, Glob
model: opus
cwd: .
---
System-prompt:
You are an expert code reviewer. Focus on:
- Finding bugs and potential issues
- Suggesting performance improvements
- Ensuring code follows best practices
- Checking for security vulnerabilitiesDevOps Agent
---
agent-name: DevOps Engineer
description: Manages deployments, CI/CD, and infrastructure
tools: Read, Write, Edit, Bash
model: sonnet
cwd: .
optional:
resume-session: true 5
---
System-prompt:
You are a DevOps engineer specializing in:
- Docker and Kubernetes configurations
- CI/CD pipeline setup
- Infrastructure as Code
- Deployment automation🔧 Advanced Features
Session Management
Enable conversation memory for multi-step tasks:
optional:
resume-session: true # 5 exchanges (default)
resume-session: true 10 # 10 exchanges
resume-session: false # DisabledPerfect for:
Multi-step debugging sessions
Feature implementation across multiple files
Extended code reviews
Iterative optimization
Resource Directories
Give agents access to additional directories:
optional:
resource_dirs: ./templates, ./data, ./scriptsDisallowed Tools
Deny specific tools from an agent:
optional:
disallowed-tools: Bash, WebSearch, WebFetchMCP Server Access
Give agents access to external MCP servers (e.g., databases, APIs):
optional:
mcp-config: ./mcp-servers.jsonThe MCP config file follows the standard format:
{
"my-db": {
"type": "stdio",
"command": "db-mcp-server",
"args": ["--connection", "postgres://..."]
}
}When mcp-config is set, --strict-mcp-config is also applied so the agent only uses its configured MCP servers.
Working Directory
Set where the agent operates from:
cwd: . # Project root (default)
cwd: ./src # Specific subdirectory
cwd: /absolute/path # Absolute path📦 Requirements
Python 3.11 or higher
Claude Code CLI (Download here)
🛠️ Troubleshooting
No agents loaded
Check that your
.mdfiles are in thetask-agents/directoryVerify the YAML frontmatter is valid
Ensure all required fields are present
Agent not appearing
Agent names with spaces become underscores in tool names
"Code Reviewer" becomes
code_reviewertoolCheck server logs:
/tmp/task_agents_server.log
Python version issues
# Check your Python version
python3 --version
# If less than 3.11, install Python 3.11
# macOS: brew install python@3.11
# Ubuntu: sudo apt install python3.11📚 Project Structure
your-project/
├── task-agents/ # Your agent configurations
│ ├── example-agent.md # Template/example agent
│ ├── my-agent.md # Your custom agents
│ └── ...
└── .mcp.json # MCP configuration (auto-created)🔗 Links
MCP Protocol: https://modelcontextprotocol.io/
📄 License
MIT License - See LICENSE file for details
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Call the AI agents you build and test in Backprompter as tools from any MCP client.
Build and manage AI-native customer support agents from Claude or any MCP client.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables the creation and execution of task-specific AI sub-agents defined in markdown across any MCP-compatible tool like Cursor or Claude Desktop. It integrates with execution engines such as Claude Code, Cursor CLI, and Gemini CLI to provide portable and reusable specialized agent workflows.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables users to define task-specific coding agents in Markdown files and invoke them from any MCP-compatible client, running each agent through a chosen coding CLI and returning results to the same conversation. It supports reusable agent definitions with shared backend, model, and permission settings, plus session continuity across multiple calls.127 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables reusable Markdown-defined coding agents—such as reviewers, test writers, or investigators—to be invoked from any MCP-compatible assistant and executed through a selected coding CLI, with results returned to the conversation.127 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables users to define task-specific agents in Markdown files and run them through a chosen coding CLI (Codex, Claude Code, Cursor, and others) from any MCP-compatible client, with results returned to the same conversation. Supports shared model and permission settings plus optional session continuity across multiple calls.127 npmMIT