Skip to main content

Hanary MCP Server - Task management for Claude Code, OpenCode & OpenAI Codex

Project description

Hanary MCP Server

Hanary MCP Server for Claude Code & OpenCode - squad-bound task management.

Features

  • MCP Server: Direct tool integration with Claude Code and OpenCode
  • Slash Commands: /hanary-status, /hanary-start, /hanary-done
  • Skills: Task management workflow with estimation patterns
  • Agents: Task planner for complex work decomposition
  • Full Compatibility: Works with both Claude Code and OpenCode

Installation

# Using uvx (recommended)
uvx hanary-mcp --squad my-project

# Or install globally
uv tool install hanary-mcp

Configuration

Claude Code Setup

  1. Set your API token as a system environment variable:
export HANARY_API_TOKEN='your-token-here'
  1. Add to your project's .mcp.json:
{
  "mcpServers": {
    "hanary": {
      "command": "uvx",
      "args": ["hanary-mcp", "--squad", "your-squad-slug"]
    }
  }
}

Or add via CLI:

claude mcp add hanary -- uvx hanary-mcp --squad your-squad-slug

Environment Variables

Set these in your shell profile (.bashrc, .zshrc, etc.):

Variable Required Description
HANARY_API_TOKEN Yes Your Hanary API token
HANARY_API_URL No API URL (default: https://hanary.org)

Available Tools

Task Management

  • list_tasks - List tasks in the squad
  • create_task - Create a new task
  • update_task - Update task title/description
  • complete_task - Mark task as completed
  • uncomplete_task - Mark task as incomplete
  • delete_task - Soft delete a task
  • get_top_task - Get highest priority incomplete task

Squad

  • get_squad - Get squad details
  • list_squad_members - List squad members

Messages

  • list_messages - List squad messages
  • create_message - Send a message

Development

# Clone and install
git clone https://github.com/hanary/hanary-mcp.git
cd hanary-mcp
uv sync

# Run locally
HANARY_API_TOKEN=your_token uv run hanary-mcp --squad test

Enhanced Features

Beyond the MCP tools, this project includes commands, skills, and agents for better UX.

Slash Commands

Command Description
/hanary-status Show current task status and squad overview
/hanary-start Begin working on top priority task
/hanary-done Complete current task and get next

Skills

  • hanary-workflow: Complete task management workflow with estimation patterns and best practices

Agents

  • task-planner: Decomposes complex work into structured tasks with estimates

Platform Setup

Claude Code

Files auto-discovered from .claude/ directory:

.claude/
├── commands/          # /hanary-status, /hanary-start, /hanary-done
├── skills/
│   └── hanary-workflow/
│       └── SKILL.md
└── agents/
    └── task-planner.md

Add MCP server to .mcp.json in your project or use the CLI:

claude mcp add hanary -- uvx hanary-mcp

OpenCode

Files auto-discovered from .opencode/ directory:

.opencode/
├── commands/          # /hanary-status, /hanary-start, /hanary-done
└── agents/
    └── task-planner.md

Skills are shared via .claude/skills/ (OpenCode reads both .opencode/skills/ and .claude/skills/).

Configuration in opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcpServers": {
    "hanary": {
      "command": "uvx",
      "args": ["hanary-mcp"]
    }
  }
}

Note: HANARY_API_TOKEN must be set as a system environment variable.

Directory Structure

hanary-mcp/
├── .claude/                    # Claude Code files
│   ├── commands/
│   │   ├── hanary-status.md
│   │   ├── hanary-start.md
│   │   └── hanary-done.md
│   ├── skills/
│   │   └── hanary-workflow/
│   │       ├── SKILL.md
│   │       └── references/
│   └── agents/
│       └── task-planner.md
├── .opencode/                  # OpenCode files
│   ├── commands/
│   │   ├── hanary-status.md
│   │   ├── hanary-start.md
│   │   └── hanary-done.md
│   └── agents/
│       └── task-planner.md
├── .mcp.json                   # MCP server config
├── opencode.json               # OpenCode config
└── src/hanary_mcp/             # MCP Server implementation

License

MIT

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

hanary_mcp-0.12.3.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

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

hanary_mcp-0.12.3-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file hanary_mcp-0.12.3.tar.gz.

File metadata

  • Download URL: hanary_mcp-0.12.3.tar.gz
  • Upload date:
  • Size: 26.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hanary_mcp-0.12.3.tar.gz
Algorithm Hash digest
SHA256 291760e55496d67d44d1d77e24f4f30bb6c73a61e92e94497ae20f5e6b0481a1
MD5 5a5108673e8602ad786e9a867b1d20ee
BLAKE2b-256 6d2aac24bf3b2f602a04dc04390e0928839139f91f6b7af480b2331db92777eb

See more details on using hashes here.

File details

Details for the file hanary_mcp-0.12.3-py3-none-any.whl.

File metadata

  • Download URL: hanary_mcp-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for hanary_mcp-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d8f8f9fcf00f1d3c8098fd5d90c276a1ca1a7af4a10290407a2804261ab7fe10
MD5 0ee040112a9c7a578a1949d12bdad397
BLAKE2b-256 9e314c3f4059dedd0b4f81f1e6597aa500c2a1c268d9589f24ecb3a828e403bd

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