Skip to main content

colabhive-mcp

Status: 0.3.0 is published on PyPI. The hosted production service at https://mcp.colabhive.com runs the additive 0.3.1 source candidate with the account-scoped Share Hive preference tools. The 0.3.2 source candidate adds the read-only data-protection tools and is not deployed yet. See docs/plans/PLAN-mcp-layer-2026-05-22.md.

Model Context Protocol (MCP) server that exposes every ColabHive model — LLMs, specialists, tools, your trained models — to any MCP-compatible AI client (Claude Desktop, Claude Code, Cursor, n8n, …).

User-facing docs: https://docs.colabhive.com/mcp


Roadmap

Phase Deliverable Status
F0 DB manifest columns + /mcp/manifest endpoint in builder-gateway ✅ implemented
F1 Package and stdio/HTTP transports ✅ PyPI and hosted production
F2 OAuth 2.1 device flow + rate limiting ⬜ pending
F3 Client integration docs + screenshots ⬜ pending
F4 Hosted service (mcp.colabhive.com) + marketplace ✅ hosted service; marketplace pending

Package layout (planned)

packages/mcp-server/
├── pyproject.toml
├── README.md                                  # this file
├── LICENSE                                    # MIT
├── src/
│   └── colabhive_mcp/
│       ├── __init__.py
│       ├── __main__.py                        # entry: `python -m colabhive_mcp`
│       ├── cli.py                             # argparse, sub-commands: serve, test, config, login, logout
│       ├── client.py                          # HTTP client for /api/builder/v1/{actions,mcp,invocations}
│       ├── manifest.py                        # ETag cache, refresh, schema validation
│       ├── auth.py                            # API key + OAuth device flow + keychain
│       ├── server_stdio.py                    # MCP stdio transport
│       ├── server_http.py                     # MCP HTTP/SSE transport (FastAPI)
│       ├── filters.py                         # allow/deny tools + kinds + stability
│       ├── invoke.py                          # sync/async glue, polling
│       ├── config.py                          # env + flag + TOML resolver
│       └── logging.py                         # structured JSON logger with redaction
├── tests/
│   ├── unit/
│   │   ├── test_manifest_cache.py
│   │   ├── test_filters.py
│   │   ├── test_invoke_sync_async.py
│   │   └── test_config_resolver.py
│   └── e2e/
│       └── test_full_flow.py                  # gated on COLABHIVE_API_KEY_STAGING
├── docs/
│   └── jsonrpc-examples/                      # captured frames for debugging
└── Dockerfile                                  # for HTTP/SSE deploy mode

Install from PyPI

# Recommended (no global Python needed)
uvx colabhive-mcp@latest

# Or pipx
pipx install colabhive-mcp

# Or pip
pip install colabhive-mcp

Quickstart

export COLABHIVE_API_KEY=hive_sk_xxx
colabhive-mcp test

Then add to your MCP client:

{
  "mcpServers": {
    "colabhive": {
      "command": "uvx",
      "args": ["colabhive-mcp@latest"],
      "env": { "COLABHIVE_API_KEY": "hive_sk_xxx" }
    }
  }
}

See user docs for full guides per client.

The 0.3.0 candidate also provides colabhive-mcp sdk-stdio and colabhive-mcp sdk-serve, strict stdio and stateless Streamable HTTP transports implemented with the official MCP Python SDK. Both reuse the same tenant-scoped core, discovery filters and call gates. The historical default stdio and hosted HTTP/SSE transports remain unchanged while clients migrate and parity is proven.

Experimental Cohort tools

Version 0.3.0 adds six opt-in tools without changing any existing tool: cohort_capabilities, plan_cohort, run_cohort, get_cohort, explain_cohort, and cancel_cohort. They are hidden and cannot be called by name unless all of the following are true:

  • COLABHIVE_MCP_COHORT_TOOLS_ENABLED=true locally;
  • MCP stability permits experimental tools;
  • Builder reports Cohort capability for the authenticated account;
  • normal allow/deny kind and side-effect filters permit the operation.

run_cohort returns promptly with a task ID and accepts an idempotency key. Status and explanation are redacted control-plane JSON; prompts, completions and tensors are never added to MCP responses. The hosted server is production-deployed; these tools remain hidden unless every local, stability and Builder capability gate passes.

Share Hive account preference

Version 0.3.1 adds two built-in tools: get_account_preferences reads the effective account setting, and set_share_hive_opt_in requires an explicit enabled boolean. The authenticated credential selects the account; the tool input cannot select a different lender account. Builder permits the write only for the account owner, and new or existing accounts remain disabled until that owner opts in.


Dev (when scaffolding lands)

# From repo root
uv pip install -e packages/mcp-server[dev]

# Run unit tests
pytest packages/mcp-server/tests/unit

# Run E2E against staging (needs API key)
COLABHIVE_API_KEY_STAGING=hive_sk_xxx \
COLABHIVE_API_URL=https://api.staging.colabhive.com \
  pytest packages/mcp-server/tests/e2e

# Run manually in stdio mode
COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp

# Run in HTTP/SSE mode
COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp serve --port 8765

Dependencies (planned)

Package Why
mcp >= 0.9 Anthropic's MCP Python SDK — protocol layer. Pinned tight in F1; we wrap the subset we use behind an interface so we can swap if the SDK shifts.
httpx >= 0.27 Async HTTP client for talking to api.colabhive.com
pydantic >= 2.6 Manifest validation, config schemas
tomli / tomllib Config file parsing
keyring >= 24 Keychain for OAuth tokens (Linux/macOS/Windows backends)
fastapi >= 0.110 + uvicorn >= 0.27 HTTP/SSE transport (optional, [http] extra)
pytest + pytest-asyncio + respx Tests (dev only)

Compliance with CLAUDE.md rules

  • REGLA #0 — No engine names hardcoded. Tool kind is derived from the manifest, which comes from _compute_kind() in builder-gateway. This package never compares engine strings.
  • REGLA #1 — DB is the only source of truth. Manifests are fetched, not invented. Missing manifest field → missing in MCP output, no defaults.
  • REGLA #2 — mcp_stability reflects lifecycle_status. Filtering by --stability stable excludes candidate (= beta).
  • REGLA #4 — Publish to PyPI with checksum + tag + latest version follows the same rigor as wheel deploys.
  • REGLA #7 — E2E tests cover the production-critical models listed in the master plan.

License

MIT — see LICENSE.


Metadata

Release files for colabhive-mcp 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for colabhive-mcp 0.3.2
File Size Uploaded Provenance Actions
colabhive_mcp-0.3.2.tar.gz 46.1 kB Without provenance Details for colabhive_mcp-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for colabhive-mcp 0.3.2
File Interpreter ABI Platform Actions
colabhive_mcp-0.3.2-py3-none-any.whl Python 3 none any Details for colabhive_mcp-0.3.2-py3-none-any.whl

Total release size: 86.0 kB

Release files / colabhive_mcp-0.3.2.tar.gz

Download URL colabhive_mcp-0.3.2.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5414126d410b86880240606ed87566e10f4de14290defa6612db35de7edef525
BLAKE2b-256 checksum
How to use checksums
4b328c19ef7dad48052a956f58f0006e354a96db927ee2d8ee0e4b57b666a0ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / colabhive_mcp-0.3.2-py3-none-any.whl

Download URL colabhive_mcp-0.3.2-py3-none-any.whl
Size 40.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f7cb60f358835b7654fad26980f1b6dc6f0b0832a7733e4f4a83a826346041f
BLAKE2b-256 checksum
How to use checksums
9c0f1003b7ece638bc96c8c4ab462d15e5e7b30665eca94958bf870e47c02f8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for colabhive-mcp 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page