colabhive-mcp
Status: scaffold / not yet implemented. 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 |
🟡 in progress |
| F1 | This package, published to PyPI | 🟡 in progress |
| F2 | OAuth 2.1 device flow + rate limiting | ⬜ pending |
| F3 | Client integration docs + screenshots | ⬜ pending |
| F4 | Hosted SaaS (mcp.colabhive.com) + 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 (when published)
# Recommended (no global Python needed)
uvx colabhive-mcp@latest
# Or pipx
pipx install colabhive-mcp
# Or pip
pip install colabhive-mcp
Quickstart (when published)
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.
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
kindis derived from the manifest, which comes from_compute_kind()inbuilder-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_stabilityreflectslifecycle_status. Filtering by--stability stableexcludescandidate(=beta). - REGLA #4 — Publish to PyPI with checksum + tag +
latestversion 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.
Links
- 📖 Docs: https://docs.colabhive.com/mcp
- 🛠 Master plan:
docs/plans/PLAN-mcp-layer-2026-05-22.md - 🐛 Issues: https://github.com/colabhive/colabhive-api/issues (label
mcp) - 🔒 Security:
security@colabhive.com(see top-levelSECURITY.md)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colabhive_mcp-0.2.0.tar.gz.
File metadata
- Download URL: colabhive_mcp-0.2.0.tar.gz
- Upload date:
- Size: 34.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc30ba69985611b146551ee1f33e4a1c5c4bbf166482b6a83e2189905eb4636
|
|
| MD5 |
9e8a8b02e6cc266b56bd69b1292d545d
|
|
| BLAKE2b-256 |
333d0e332981c5d0267bd53b384fa1b006499c684875b0645ddcc5377c3e5fda
|
File details
Details for the file colabhive_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: colabhive_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53e22050ba7584df8f2bd4f342b9eb71bc4850ecd1f53d2a279079b68966fe55
|
|
| MD5 |
4e2896c83b7bc6899a5745fdfb59d6e6
|
|
| BLAKE2b-256 |
51da8281ecad5ad7d0788d0e06f073406eb673d13212e98920d7569fc05d194b
|