dazeb

๐Ÿค MCP Handoff Server

Community dazeb
Updated

A comprehensive Model Context Protocol (MCP) server designed to manage AI agent handoffs with structured documentation, progress tracking, and seamless task transitions between agents. Supports HTTP streaming.

๐Ÿค MCP Handoff Server

A Model Context Protocol (MCP) server that helps AI agents hand off work to each other with structured documentation and progress tracking.

โœจ What it does

When AI agents need to pass work between each other, this server provides:

  • ๐Ÿ“ Structured handoff documents with templates
  • ๐Ÿ”„ Progress tracking from start to completion
  • ๐Ÿ“ Automatic organization of active and archived handoffs
  • ๐Ÿ” Easy searching and filtering of past work

๐Ÿš€ Quick Start

Just run it with npx - no installation needed:

# Start in MCP mode (for MCP clients)
npx -y mcp-handoff-server

# Start HTTP server (for testing/direct API access)
npx -y mcp-handoff-server --mode http

That's it! The server automatically creates all needed folders and templates.

๐Ÿ“‹ Basic Usage

For MCP Clients

Add to your MCP client configuration:

{
  "mcpServers": {
    "handoff": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-handoff-server"
      ]
    }
  }
}

For HTTP Testing

# Start server
npx -y mcp-handoff-server --mode http

# Test it works
curl http://localhost:3001/health

๐Ÿ› ๏ธ Available Tools

The server provides these MCP tools for AI agents:

graph LR
    A[๐Ÿ“ create_handoff] --> B[๐Ÿ“– read_handoff]
    B --> C[๐Ÿ”„ update_handoff]
    C --> D[โœ… complete_handoff]
    D --> E[๐Ÿ“ฆ archive_handoff]

    F[๐Ÿ“‹ list_handoffs] --> B

    style A fill:#e1f5fe
    style C fill:#f3e5f5
    style D fill:#e8f5e8
    style E fill:#fff3e0
    style F fill:#fce4ec

Tool Functions:

  • create_handoff - Start a new handoff document
  • read_handoff - Read an existing handoff
  • update_handoff - Add progress updates
  • complete_handoff - Mark work as finished
  • archive_handoff - Move completed work to archive
  • list_handoffs - Find and filter handoffs

๐Ÿ“– Example: Creating a Handoff

# Start the server
npx -y mcp-handoff-server --mode http

# Create a new handoff
curl -X POST http://localhost:3001/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "create_handoff",
    "params": {
      "type": "quick",
      "initialData": {
        "date": "2025-06-30",
        "time": "14:30 UTC",
        "currentState": {
          "workingOn": "Building user login",
          "status": "50% complete",
          "nextStep": "Add password validation"
        },
        "environmentStatus": {
          "details": {
            "Server": "โœ…",
            "Database": "โœ…"
          }
        }
      }
    }
  }'

๐Ÿ”ง Command Options

npx -y mcp-handoff-server [options]

Options:
  --mode <mode>        'mcp' or 'http' (default: mcp)
  --port <port>        HTTP port (default: 3001)
  --handoff-root <dir> Storage directory (default: ./handoff-system)
  --help              Show help
  --version           Show version

๐Ÿ”„ How It Works

Simple Workflow

  1. Create a handoff when starting work
  2. Update progress as you work
  3. Complete when finished
  4. Archive for future reference
graph TD
    A[๐Ÿค– Agent Starts Work] --> B{New Work?}
    B -->|Yes| C[๐Ÿ“ create_handoff]
    B -->|No| D[๐Ÿ“– read_handoff]

    C --> E[๐Ÿ“ Active Handoff]
    D --> E

    E --> F[๐Ÿ”„ update_handoff]
    F --> G{Work Done?}

    G -->|No| F
    G -->|Yes| H[โœ… complete_handoff]

    H --> I[๐Ÿ“ฆ archive_handoff]
    I --> J[๐Ÿ—„๏ธ Archived]

    style C fill:#e1f5fe
    style F fill:#f3e5f5
    style H fill:#e8f5e8
    style I fill:#fff3e0

File Organization

The server automatically organizes everything in folders:

  • handoff-system/active/ - Current work
  • handoff-system/archive/ - Completed work
  • handoff-system/templates/ - Document templates

๐ŸŽฏ Two Types of Handoffs

๐Ÿ“‹ Standard Handoff - For complex work with detailed contextโšก Quick Handoff - For simple updates and brief transitions

๐Ÿท๏ธ Status Indicators

  • โœ… Working - Everything good
  • โš ๏ธ Warning - Some issues but not blocked
  • โŒ Error - Problems that need fixing

๐Ÿ› ๏ธ Development

Want to contribute or run locally?

# Clone and install
git clone <repository-url>
cd mcp-handoff-server
npm install

# Run in development
npm run dev

# Build for production
npm run build

๐Ÿ“„ License

MIT License - feel free to use this in your projects!

๐Ÿ†˜ Need Help?

Built for seamless AI agent collaboration ๐Ÿค–โœจ

MCP Server ยท Populars

MCP Server ยท New