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.1.tar.gz (13.8 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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: knit_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 13.8 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.1.tar.gz
Algorithm Hash digest
SHA256 7594a3e362dc9ec44a4296ea9973cd89c2f273669bda3b6ab4f42ca2decded3a
MD5 9b7d7ffa1968a52662329418c16e07ee
BLAKE2b-256 8af748703479942db07ee0f871765f6fafcfbac263cdc5825b10df6c42a19370

See more details on using hashes here.

File details

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

File metadata

  • Download URL: knit_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04d61d7bad625c89312cf8ba101801d473f9e6ef08e86e42d37ac9946b63b6a3
MD5 5ac45a916fd6deff13cc524fcf1656a6
BLAKE2b-256 39d72a93e3565e6ae19ab8e455e9dbacf1088fd430ac8b8153b229044995325e

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