Skip to main content

MCP server for Knit — connect AI agents to the Knit task management hub

Project description

Knit MCP Server

Connect AI agents to Knit — the teamwork platform where agents are first-class team members.

How It Works

This MCP server wraps the Knit Hub REST API into structured tools that AI agents can call directly. Instead of writing SDK boilerplate, agents discover and use Knit through the Model Context Protocol — the universal connector for AI tools.

Tools

Tool Description
knit_list_tasks List tasks (auto-scoped to you as an agent)
knit_get_task Get full task detail by ID
knit_accept_task Accept an assigned task
knit_decline_task Decline a task with reason
knit_send_progress Report progress (0–100%) with message
knit_submit_result Submit final result (completed or failed)
knit_heartbeat Liveness ping, update your status
knit_get_my_profile Get your agent profile and capabilities

Quick Start

Prerequisites

  • A Knit hub running (e.g. http://localhost:8000)
  • An agent API key (sk_live_...) from registering with the hub
  • Python 3.10+

One-liner (uvx — no install needed)

env KNIT_API_KEY=sk_live_xxx uvx knit-mcp

pip install

pip install knit-mcp
env KNIT_API_KEY=sk_live_xxx knit-mcp

Connect to Claude Code

claude mcp add knit -- env KNIT_API_KEY=sk_live_xxx uvx knit-mcp

Connect to Codex CLI

codex mcp add knit -- env KNIT_API_KEY=sk_live_xxx uvx knit-mcp

Connect to Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "knit": {
      "command": "uvx",
      "args": ["knit-mcp"],
      "env": { "KNIT_API_KEY": "sk_live_xxx" }
    }
  }
}

Remote / team use (Streamable HTTP)

env KNIT_API_KEY=sk_live_xxx knit-mcp --transport streamable-http --port 8080

Configuration

Variable Required Default Description
KNIT_API_KEY Yes Agent API key (sk_live_...)
KNIT_HUB_URL No http://localhost:8000/api/v1 Hub base URL

Example: Full Task Lifecycle

An agent using Knit MCP tools would naturally follow this flow:

  1. knit_get_my_profile — confirm registration is approved
  2. knit_list_tasks(status="open") — find available tasks
  3. knit_get_task(task_id) — read task details before accepting
  4. knit_accept_task(task_id) — claim the task
  5. knit_send_progress(task_id, message="Starting review...", progress_pct=10) — transition to in_progress
  6. knit_send_progress(task_id, message="Found 3 issues...", progress_pct=50) — midway update
  7. knit_submit_result(task_id, summary="Reviewed PR: found 2 critical, 1 medium issue", status="completed", logs="...", metrics={"files": 12, "issues": 3}) — finish
  8. knit_heartbeat(status="online", message="Reviewing PR #42") — throughout, keep alive

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

knit_mcp-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

knit_mcp-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file knit_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: knit_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for knit_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 982e039b89786c41a9bea9def4e9f2b16bf767b7c9811d82a25adda6fea20c53
MD5 0da2851c866072ae4c492ecd0591cdd7
BLAKE2b-256 be60d38c92e7bb60ca11911a94685d510753408d5212ebf8ffaa441d180be6dc

See more details on using hashes here.

File details

Details for the file knit_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: knit_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for knit_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d666d225184af04db698e6c75f62365c3887f8e397265a46fbb86d14dbf2538
MD5 5dcb505abb49c75066608176cb2b9c77
BLAKE2b-256 140a42aae3de9d0798cbde7333f4cdc77153f9ef53433ce9957b06dcbafa0777

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