Skip to main content

Multi-tool MCP server for specialized AI agents - each agent as its own tool

Project description

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.0.0 - Simplified architecture with user-defined agents only

🎯 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

🚀 Quick Install (2 Steps)

Step 1: Install the package

# Requires Python 3.11 or higher
python3.11 -m pip install task-agents-mcp

Step 2: Add to Claude Code

claude mcp add task-agent task-agent -s project

That'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

  1. Copy the example template:

    cp task-agents/example-agent.md task-agents/my-agent.md
    
  2. Edit my-agent.md to 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)
  3. 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
---

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 vulnerabilities

DevOps 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     # Disabled

Perfect 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, ./scripts

Working Directory

Set where the agent operates from:

cwd: .                    # Project root (default)
cwd: ./src               # Specific subdirectory
cwd: /absolute/path      # Absolute path

📦 Requirements

🛠️ Troubleshooting

No agents loaded

  • Check that your .md files are in the task-agents/ directory
  • Verify 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_reviewer tool
  • Check 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

📄 License

MIT License - See LICENSE file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

task_agents_mcp-4.0.0.tar.gz (37.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

task_agents_mcp-4.0.0-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file task_agents_mcp-4.0.0.tar.gz.

File metadata

  • Download URL: task_agents_mcp-4.0.0.tar.gz
  • Upload date:
  • Size: 37.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for task_agents_mcp-4.0.0.tar.gz
Algorithm Hash digest
SHA256 d28218820b47437f09c12fa942403949b2352ab1c8034e401b9a7f813c19a06c
MD5 b4d0ae11e22a439e66661f287e77d948
BLAKE2b-256 099449ac202b03d372efa23e7ed327dd642a2d2c7376f8b1051632bf06a0e722

See more details on using hashes here.

File details

Details for the file task_agents_mcp-4.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for task_agents_mcp-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6584960cf39e00be8072156ed1a2d375fcfb12e3d611d28d1d0423891dc1738
MD5 a7e4e55d91bca8c7ede5ce41533cd217
BLAKE2b-256 ea0dcecf2edd51cdb65bdce0433522ccf658af024f396d7efa8314a829074831

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page