Airsc is free for everyone. If it helps you, support it with $2–$20.

Support
AgentCautionAgent workflow & memoryAdvanced

MCP-Developer-SubAgent

gensecaihq · gensecaihq/MCP-Developer-SubAgent

A specialized framework for Model Context Protocol (MCP) development, offering 8 Claude Code sub-agents, security hooks, and production-ready FastMCP server templates.

A specialized framework for Model Context Protocol (MCP) development featuring 8 Claude Code sub-agents, security hooks, and production-ready FastMCP server templates. Provides immediate MCP development assistance through markdown-driven agents with optional programmatic SDK .

28 stars8License: MITUpdated last year0 opens

Preview

▍

What you can do with it

  • Develop custom MCP servers using provided FastMCP templates.
  • Utilize specialized sub-agents to assist in MCP protocol design and implementation.
  • Implement enterprise-grade security features for agent interactions using hardened security hooks.

Safety check

Caution

Usable, but read the notes first.

  • ●Not updated for over a year.

Automated scan of the repo files. Always review code you run.

From the README

Claude Code MCP Developer SDK

Production-ready Claude Code framework for Model Context Protocol (MCP) development with 8 specialized AI sub-agents, FastMCP integration, and hardened enterprise-grade security hooks. Audit Score: 10/10 - Security-audited, fully functional across Windows, macOS, and Linux with immediate usability (no installation required for core features).

🚀 Features

Dual-Mode Architecture

  • 📝 Markdown-Driven Sub-Agents: 8 specialized agents in .claude/agents/ for Claude Code integration
  • 🔧 Programmatic SDK: Full Python SDK with async support and official Anthropic API integration
  • 🎯 Hybrid Operation: Both systems work seamlessly together with automatic fallback

Core Components

  • ✅ Claude Code Sub-Agents: 8 specialized agents (1,419 lines) for MCP development assistance
  • 🔒 Hardened Security Hooks: Enterprise-grade input validation with code injection blocking and empty command prevention
  • 📝 MCP Templates: 2 working FastMCP server examples with validated syntax
  • 🔄 CI/CD Ready: GitHub Actions workflow with 7 automated jobs and security scanning
  • 🛠️ Development Tools: Cross-platform validation utilities (works without installation)
  • 🚀 SDK Components: Full Python API with graceful degradation (6,016 lines of code)

📋 Requirements

  • Python 3.8+ (tested and verified on macOS, Windows, Linux)
  • Claude Code (for sub-agent functionality) - Optional for CLI tools
  • Anthropic API key (for programmatic SDK features) - Optional for validation tools
  • Production-ready: All 12 dependencies available on PyPI, works immediately without installation

🛠️ Installation

Quick Start (Cross-Platform)

# Clone the repository
git clone https://github.com/gensecaihq/MCP-Developer-SubAgent.git
cd MCP-Developer-SubAgent

# ✅ VERIFIED: Check platform compatibility (works without installation)
python3 claude_code_sdk/cli_simple.py validate-setup

# ✅ TESTED: Basic installation (all dependencies available on PyPI)
pip install -e .        # macOS/Linux
python3 -m pip install -e .   # Windows (if python3 available)
python -m pip install -e .    # Windows (alternative)

# ✅ VERIFIED: Optional authentication support
pip install -e .[auth]  # JWT/crypto features (tested on all platforms)

📖 For detailed platform-specific instructions, see INSTALL.md

Environment Setup

Windows (Command Prompt):

set ANTHROPIC_API_KEY=sk-ant-your-key-here

Windows (PowerShell):

$env:ANTHROPIC_API_KEY="sk-ant-your-key-here"

macOS/Linux:

export ANTHROPIC_API_KEY=sk-ant-your-key-here

🎯 Usage

1. Markdown-Driven Sub-Agents (Claude Code)

The .claude/agents/ directory contains 8 specialized sub-agents that work directly with Claude Code:

.claude/agents/
├── mcp-orchestrator.md       # Central workflow coordinator (Opus)
├── fastmcp-specialist.md     # FastMCP implementation expert (Sonnet)
├── mcp-protocol-expert.md    # Protocol specification specialist (Sonnet)
├── mcp-security-auditor.md   # Security and authentication expert (Opus)
├── mcp-performance-optimizer.md # Performance optimization specialist (Sonnet)
├── mcp-deployment-specialist.md # Deployment and infrastructure expert (Sonnet)
├── mcp-debugger.md           # Troubleshooting specialist (Sonnet)
└── context-manager.md        # Context and state management (Sonnet)

Using with Claude Code:

# Agents auto-activate based on file patterns
cd your-mcp-project
claude-code

# Request specific agents
> Use the fastmcp-specialist to implement a new tool
> Use the mcp-security-auditor to review authentication

2. Programmatic SDK (Requires Installation)

Note: Requires pip install -e . and proper dependencies

from claude_code_sdk import MCPOrchestrator, FastMCPSpecialist

# Initialize orchestrator (requires ANTHROPIC_API_KEY)
orchestrator = MCPOrchestrator()
session_id = await orchestrator.create_conversation()

# Send orchestration request
message = """
Create a new MCP server with the following requirements:
- Name: my-api-server
- Tools: search, analyze, report  
- Authentication: OAuth 2.1
"""

result = await orchestrator.send_message(message, output_format="json")
print(result["content"])

3. Validation Tools

# ✅ PRODUCTION-TESTED: Basic validation (works without dependencies)
python3 claude_code_sdk/cli_simple.py validate-setup
python3 claude_code_sdk/cli_simple.py status

# ✅ ENTERPRISE-READY: Advanced CLI (requires pip install -e .)
claude-mcp validate-setup
claude-mcp orchestrate --workflow new_server

Security-Hardened Metrics: 8 sub-agents, 2 validated examples, enhanced security hooks (blocks code injection), 7-job CI/CD pipeline with security scanning

🏗️ Architecture

Directory Structure

MCP-Developer-SubAgent/
├── .claude/
│   ├── agents/              # Markdown sub-agents for Claude Code
│   ├── config.json          # Agent configuration
│   ├── hooks.json          # Hooks configuration
│   └── hooks/              # Hook handlers
├── .github/
│   └── workflows/          # GitHub Actions CI/CD
├── claude_code_sdk/        # Programmatic SDK
│   ├── claude_integration.py
│   └── cli.py
├── examples/               # Working MCP examples
│   ├── minimal-mcp-server/
│   ├── enterprise-auth-server/
│   └── testing-framework/
├── docs/                   # Documentation
├── pyproject.toml         # Modern Python packaging
├── setup.py               # Legacy packaging support
└── requirements.txt       # Dependencies

Quality Gates Pipeline

  1. Planning Gate: Requirements, architecture, transport selection
  2. Protocol Gate: MCP compliance, JSON-RPC validation
  3. Security Gate: Authentication, input validation, boundaries
  4. Implementation Gate: Code quality, type safety, patterns
  5. Testing Gate: Coverage, compliance, integration
  6. **Performance G
View source on GitHub