colabhive-mcp 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. colabhive_mcp-0.2.0/.gitignore +6 -0
  2. colabhive_mcp-0.2.0/G5_SECURITY_EVIDENCE.md +30 -0
  3. colabhive_mcp-0.2.0/PKG-INFO +194 -0
  4. colabhive_mcp-0.2.0/README.md +157 -0
  5. colabhive_mcp-0.2.0/pyproject.toml +74 -0
  6. colabhive_mcp-0.2.0/pytest.ini +3 -0
  7. colabhive_mcp-0.2.0/src/colabhive_mcp/__init__.py +19 -0
  8. colabhive_mcp-0.2.0/src/colabhive_mcp/__main__.py +4 -0
  9. colabhive_mcp-0.2.0/src/colabhive_mcp/builtin_tools.py +613 -0
  10. colabhive_mcp-0.2.0/src/colabhive_mcp/cli.py +244 -0
  11. colabhive_mcp-0.2.0/src/colabhive_mcp/client.py +530 -0
  12. colabhive_mcp-0.2.0/src/colabhive_mcp/config.py +200 -0
  13. colabhive_mcp-0.2.0/src/colabhive_mcp/filters.py +44 -0
  14. colabhive_mcp-0.2.0/src/colabhive_mcp/logging.py +65 -0
  15. colabhive_mcp-0.2.0/src/colabhive_mcp/manifest_cache.py +72 -0
  16. colabhive_mcp-0.2.0/src/colabhive_mcp/protocol.py +150 -0
  17. colabhive_mcp-0.2.0/src/colabhive_mcp/server.py +155 -0
  18. colabhive_mcp-0.2.0/src/colabhive_mcp/server_http.py +158 -0
  19. colabhive_mcp-0.2.0/src/colabhive_mcp/server_pool.py +77 -0
  20. colabhive_mcp-0.2.0/src/colabhive_mcp/server_stdio.py +81 -0
  21. colabhive_mcp-0.2.0/src/colabhive_mcp/tools_adapter.py +86 -0
  22. colabhive_mcp-0.2.0/tests/conftest.py +7 -0
  23. colabhive_mcp-0.2.0/tests/unit/test_client.py +261 -0
  24. colabhive_mcp-0.2.0/tests/unit/test_config.py +82 -0
  25. colabhive_mcp-0.2.0/tests/unit/test_filters.py +77 -0
  26. colabhive_mcp-0.2.0/tests/unit/test_protocol.py +111 -0
  27. colabhive_mcp-0.2.0/tests/unit/test_server_pool.py +55 -0
  28. colabhive_mcp-0.2.0/tests/unit/test_tools_adapter.py +208 -0
  29. colabhive_mcp-0.2.0/tests/unit/test_version_contract.py +18 -0
  30. colabhive_mcp-0.2.0/tests/unit/test_webhook_surfaces.py +280 -0
@@ -0,0 +1,6 @@
1
+ .venv/
2
+ *.egg-info/
3
+ __pycache__/
4
+ .pytest_cache/
5
+ build/
6
+ dist/
@@ -0,0 +1,30 @@
1
+ # G5 MCP webhook secret gate
2
+
3
+ This is internal release evidence, not public product documentation.
4
+
5
+ All seven webhook tools implement the Builder G1 contract, but the unpublished candidate excludes
6
+ them from both MCP `tools/list` and `tools/call` by default. An operator must first set
7
+ `COLABHIVE_MCP_WEBHOOK_TOOLS_ENABLED=true`, `webhook_tools_enabled = true` in MCP configuration,
8
+ or the `--webhook-tools-enabled` CLI flag.
9
+
10
+ `create_webhook_endpoint` and `rotate_webhook_secret` have a second, independent gate. Their
11
+ successful responses contain
12
+ a one-time `whsec_` signing secret, and the MCP adapter serializes dictionary results into model
13
+ content blocks. Exposing either tool without an explicit operator decision could therefore copy a
14
+ long-lived credential into an agent transcript, trace, or model context.
15
+
16
+ After enabling the global webhook gate, an operator may opt in to these two tools with
17
+ `allow_webhook_secret_tools = true` in MCP configuration, the
18
+ `COLABHIVE_ALLOW_WEBHOOK_SECRET_TOOLS=true` environment variable, or the
19
+ `--allow-webhook-secret-tools` CLI flag. Builder remains the authorization boundary and applies its
20
+ existing account/RBAC checks. The gate does not add or bypass scopes.
21
+
22
+ The remaining webhook endpoint tools return only Builder's redacted projections and delivery test
23
+ receipts. No delivery listing, redelivery, callback URL, streaming, or other nonexistent route is
24
+ represented.
25
+
26
+ The tool annotations use the MCP-standard `readOnlyHint`, `destructiveHint`, `idempotentHint`, and
27
+ `openWorldHint` fields. List/get are read-only. Delete is destructive; update and rotate are also
28
+ marked destructive because URL/enablement changes or emergency rotation can cancel deliveries.
29
+ Create and test are non-destructive. Every mutation requires its concurrency or idempotency input in
30
+ the MCP schema even where the current HTTP declaration marks the header optional.
@@ -0,0 +1,194 @@
1
+ Metadata-Version: 2.5
2
+ Name: colabhive-mcp
3
+ Version: 0.2.0
4
+ Summary: Model Context Protocol server for ColabHive — expose LLMs, specialists, tools, and your trained models to any MCP client.
5
+ Project-URL: Homepage, https://docs.colabhive.com/mcp
6
+ Project-URL: Documentation, https://docs.colabhive.com/mcp
7
+ Project-URL: Repository, https://github.com/colabhive/colabhive-api
8
+ Project-URL: Issues, https://github.com/colabhive/colabhive-api/issues
9
+ Project-URL: Changelog, https://github.com/colabhive/colabhive-api/blob/main/packages/mcp-server/CHANGELOG.md
10
+ Author-email: ColabHive <engineering@colabhive.com>
11
+ License: MIT
12
+ Keywords: agent,ai,colabhive,llm,mcp,model-context-protocol
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
21
+ Requires-Python: >=3.10
22
+ Requires-Dist: httpx>=0.27
23
+ Requires-Dist: keyring>=24
24
+ Requires-Dist: mcp<2.0,>=0.9
25
+ Requires-Dist: pydantic>=2.6
26
+ Provides-Extra: dev
27
+ Requires-Dist: mypy>=1.10; extra == 'dev'
28
+ Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
29
+ Requires-Dist: pytest>=8; extra == 'dev'
30
+ Requires-Dist: respx>=0.21; extra == 'dev'
31
+ Requires-Dist: ruff>=0.5; extra == 'dev'
32
+ Provides-Extra: http
33
+ Requires-Dist: fastapi>=0.110; extra == 'http'
34
+ Requires-Dist: sse-starlette>=2.0; extra == 'http'
35
+ Requires-Dist: uvicorn[standard]>=0.27; extra == 'http'
36
+ Description-Content-Type: text/markdown
37
+
38
+ # colabhive-mcp
39
+
40
+ **Status:** scaffold / not yet implemented. See [`docs/plans/PLAN-mcp-layer-2026-05-22.md`](../../docs/plans/PLAN-mcp-layer-2026-05-22.md).
41
+
42
+ 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, …).
43
+
44
+ User-facing docs: <https://docs.colabhive.com/mcp>
45
+
46
+ ---
47
+
48
+ ## Roadmap
49
+
50
+ | Phase | Deliverable | Status |
51
+ |---|---|---|
52
+ | F0 | DB manifest columns + `/mcp/manifest` endpoint in `builder-gateway` | 🟡 in progress |
53
+ | F1 | This package, published to PyPI | 🟡 in progress |
54
+ | F2 | OAuth 2.1 device flow + rate limiting | ⬜ pending |
55
+ | F3 | Client integration docs + screenshots | ⬜ pending |
56
+ | F4 | Hosted SaaS (`mcp.colabhive.com`) + marketplace | ⬜ pending |
57
+
58
+ ---
59
+
60
+ ## Package layout (planned)
61
+
62
+ ```
63
+ packages/mcp-server/
64
+ ├── pyproject.toml
65
+ ├── README.md # this file
66
+ ├── LICENSE # MIT
67
+ ├── src/
68
+ │ └── colabhive_mcp/
69
+ │ ├── __init__.py
70
+ │ ├── __main__.py # entry: `python -m colabhive_mcp`
71
+ │ ├── cli.py # argparse, sub-commands: serve, test, config, login, logout
72
+ │ ├── client.py # HTTP client for /api/builder/v1/{actions,mcp,invocations}
73
+ │ ├── manifest.py # ETag cache, refresh, schema validation
74
+ │ ├── auth.py # API key + OAuth device flow + keychain
75
+ │ ├── server_stdio.py # MCP stdio transport
76
+ │ ├── server_http.py # MCP HTTP/SSE transport (FastAPI)
77
+ │ ├── filters.py # allow/deny tools + kinds + stability
78
+ │ ├── invoke.py # sync/async glue, polling
79
+ │ ├── config.py # env + flag + TOML resolver
80
+ │ └── logging.py # structured JSON logger with redaction
81
+ ├── tests/
82
+ │ ├── unit/
83
+ │ │ ├── test_manifest_cache.py
84
+ │ │ ├── test_filters.py
85
+ │ │ ├── test_invoke_sync_async.py
86
+ │ │ └── test_config_resolver.py
87
+ │ └── e2e/
88
+ │ └── test_full_flow.py # gated on COLABHIVE_API_KEY_STAGING
89
+ ├── docs/
90
+ │ └── jsonrpc-examples/ # captured frames for debugging
91
+ └── Dockerfile # for HTTP/SSE deploy mode
92
+ ```
93
+
94
+ ---
95
+
96
+ ## Install (when published)
97
+
98
+ ```bash
99
+ # Recommended (no global Python needed)
100
+ uvx colabhive-mcp@latest
101
+
102
+ # Or pipx
103
+ pipx install colabhive-mcp
104
+
105
+ # Or pip
106
+ pip install colabhive-mcp
107
+ ```
108
+
109
+ ---
110
+
111
+ ## Quickstart (when published)
112
+
113
+ ```bash
114
+ export COLABHIVE_API_KEY=hive_sk_xxx
115
+ colabhive-mcp test
116
+ ```
117
+
118
+ Then add to your MCP client:
119
+
120
+ ```json
121
+ {
122
+ "mcpServers": {
123
+ "colabhive": {
124
+ "command": "uvx",
125
+ "args": ["colabhive-mcp@latest"],
126
+ "env": { "COLABHIVE_API_KEY": "hive_sk_xxx" }
127
+ }
128
+ }
129
+ }
130
+ ```
131
+
132
+ See [user docs](https://docs.colabhive.com/mcp) for full guides per client.
133
+
134
+ ---
135
+
136
+ ## Dev (when scaffolding lands)
137
+
138
+ ```bash
139
+ # From repo root
140
+ uv pip install -e packages/mcp-server[dev]
141
+
142
+ # Run unit tests
143
+ pytest packages/mcp-server/tests/unit
144
+
145
+ # Run E2E against staging (needs API key)
146
+ COLABHIVE_API_KEY_STAGING=hive_sk_xxx \
147
+ COLABHIVE_API_URL=https://api.staging.colabhive.com \
148
+ pytest packages/mcp-server/tests/e2e
149
+
150
+ # Run manually in stdio mode
151
+ COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp
152
+
153
+ # Run in HTTP/SSE mode
154
+ COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp serve --port 8765
155
+ ```
156
+
157
+ ---
158
+
159
+ ## Dependencies (planned)
160
+
161
+ | Package | Why |
162
+ |---|---|
163
+ | `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. |
164
+ | `httpx >= 0.27` | Async HTTP client for talking to api.colabhive.com |
165
+ | `pydantic >= 2.6` | Manifest validation, config schemas |
166
+ | `tomli` / `tomllib` | Config file parsing |
167
+ | `keyring >= 24` | Keychain for OAuth tokens (Linux/macOS/Windows backends) |
168
+ | `fastapi >= 0.110` + `uvicorn >= 0.27` | HTTP/SSE transport (optional, `[http]` extra) |
169
+ | `pytest` + `pytest-asyncio` + `respx` | Tests (dev only) |
170
+
171
+ ---
172
+
173
+ ## Compliance with CLAUDE.md rules
174
+
175
+ - **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.
176
+ - **REGLA #1** — DB is the only source of truth. Manifests are fetched, not invented. Missing manifest field → missing in MCP output, no defaults.
177
+ - **REGLA #2** — `mcp_stability` reflects `lifecycle_status`. Filtering by `--stability stable` excludes `candidate` (= `beta`).
178
+ - **REGLA #4** — Publish to PyPI with checksum + tag + `latest` version follows the same rigor as wheel deploys.
179
+ - **REGLA #7** — E2E tests cover the production-critical models listed in the master plan.
180
+
181
+ ---
182
+
183
+ ## License
184
+
185
+ MIT — see [`LICENSE`](LICENSE).
186
+
187
+ ---
188
+
189
+ ## Links
190
+
191
+ - 📖 Docs: <https://docs.colabhive.com/mcp>
192
+ - 🛠 Master plan: [`docs/plans/PLAN-mcp-layer-2026-05-22.md`](../../docs/plans/PLAN-mcp-layer-2026-05-22.md)
193
+ - 🐛 Issues: <https://github.com/colabhive/colabhive-api/issues> (label `mcp`)
194
+ - 🔒 Security: `security@colabhive.com` (see top-level `SECURITY.md`)
@@ -0,0 +1,157 @@
1
+ # colabhive-mcp
2
+
3
+ **Status:** scaffold / not yet implemented. See [`docs/plans/PLAN-mcp-layer-2026-05-22.md`](../../docs/plans/PLAN-mcp-layer-2026-05-22.md).
4
+
5
+ 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, …).
6
+
7
+ User-facing docs: <https://docs.colabhive.com/mcp>
8
+
9
+ ---
10
+
11
+ ## Roadmap
12
+
13
+ | Phase | Deliverable | Status |
14
+ |---|---|---|
15
+ | F0 | DB manifest columns + `/mcp/manifest` endpoint in `builder-gateway` | 🟡 in progress |
16
+ | F1 | This package, published to PyPI | 🟡 in progress |
17
+ | F2 | OAuth 2.1 device flow + rate limiting | ⬜ pending |
18
+ | F3 | Client integration docs + screenshots | ⬜ pending |
19
+ | F4 | Hosted SaaS (`mcp.colabhive.com`) + marketplace | ⬜ pending |
20
+
21
+ ---
22
+
23
+ ## Package layout (planned)
24
+
25
+ ```
26
+ packages/mcp-server/
27
+ ├── pyproject.toml
28
+ ├── README.md # this file
29
+ ├── LICENSE # MIT
30
+ ├── src/
31
+ │ └── colabhive_mcp/
32
+ │ ├── __init__.py
33
+ │ ├── __main__.py # entry: `python -m colabhive_mcp`
34
+ │ ├── cli.py # argparse, sub-commands: serve, test, config, login, logout
35
+ │ ├── client.py # HTTP client for /api/builder/v1/{actions,mcp,invocations}
36
+ │ ├── manifest.py # ETag cache, refresh, schema validation
37
+ │ ├── auth.py # API key + OAuth device flow + keychain
38
+ │ ├── server_stdio.py # MCP stdio transport
39
+ │ ├── server_http.py # MCP HTTP/SSE transport (FastAPI)
40
+ │ ├── filters.py # allow/deny tools + kinds + stability
41
+ │ ├── invoke.py # sync/async glue, polling
42
+ │ ├── config.py # env + flag + TOML resolver
43
+ │ └── logging.py # structured JSON logger with redaction
44
+ ├── tests/
45
+ │ ├── unit/
46
+ │ │ ├── test_manifest_cache.py
47
+ │ │ ├── test_filters.py
48
+ │ │ ├── test_invoke_sync_async.py
49
+ │ │ └── test_config_resolver.py
50
+ │ └── e2e/
51
+ │ └── test_full_flow.py # gated on COLABHIVE_API_KEY_STAGING
52
+ ├── docs/
53
+ │ └── jsonrpc-examples/ # captured frames for debugging
54
+ └── Dockerfile # for HTTP/SSE deploy mode
55
+ ```
56
+
57
+ ---
58
+
59
+ ## Install (when published)
60
+
61
+ ```bash
62
+ # Recommended (no global Python needed)
63
+ uvx colabhive-mcp@latest
64
+
65
+ # Or pipx
66
+ pipx install colabhive-mcp
67
+
68
+ # Or pip
69
+ pip install colabhive-mcp
70
+ ```
71
+
72
+ ---
73
+
74
+ ## Quickstart (when published)
75
+
76
+ ```bash
77
+ export COLABHIVE_API_KEY=hive_sk_xxx
78
+ colabhive-mcp test
79
+ ```
80
+
81
+ Then add to your MCP client:
82
+
83
+ ```json
84
+ {
85
+ "mcpServers": {
86
+ "colabhive": {
87
+ "command": "uvx",
88
+ "args": ["colabhive-mcp@latest"],
89
+ "env": { "COLABHIVE_API_KEY": "hive_sk_xxx" }
90
+ }
91
+ }
92
+ }
93
+ ```
94
+
95
+ See [user docs](https://docs.colabhive.com/mcp) for full guides per client.
96
+
97
+ ---
98
+
99
+ ## Dev (when scaffolding lands)
100
+
101
+ ```bash
102
+ # From repo root
103
+ uv pip install -e packages/mcp-server[dev]
104
+
105
+ # Run unit tests
106
+ pytest packages/mcp-server/tests/unit
107
+
108
+ # Run E2E against staging (needs API key)
109
+ COLABHIVE_API_KEY_STAGING=hive_sk_xxx \
110
+ COLABHIVE_API_URL=https://api.staging.colabhive.com \
111
+ pytest packages/mcp-server/tests/e2e
112
+
113
+ # Run manually in stdio mode
114
+ COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp
115
+
116
+ # Run in HTTP/SSE mode
117
+ COLABHIVE_API_KEY=hive_sk_xxx python -m colabhive_mcp serve --port 8765
118
+ ```
119
+
120
+ ---
121
+
122
+ ## Dependencies (planned)
123
+
124
+ | Package | Why |
125
+ |---|---|
126
+ | `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. |
127
+ | `httpx >= 0.27` | Async HTTP client for talking to api.colabhive.com |
128
+ | `pydantic >= 2.6` | Manifest validation, config schemas |
129
+ | `tomli` / `tomllib` | Config file parsing |
130
+ | `keyring >= 24` | Keychain for OAuth tokens (Linux/macOS/Windows backends) |
131
+ | `fastapi >= 0.110` + `uvicorn >= 0.27` | HTTP/SSE transport (optional, `[http]` extra) |
132
+ | `pytest` + `pytest-asyncio` + `respx` | Tests (dev only) |
133
+
134
+ ---
135
+
136
+ ## Compliance with CLAUDE.md rules
137
+
138
+ - **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.
139
+ - **REGLA #1** — DB is the only source of truth. Manifests are fetched, not invented. Missing manifest field → missing in MCP output, no defaults.
140
+ - **REGLA #2** — `mcp_stability` reflects `lifecycle_status`. Filtering by `--stability stable` excludes `candidate` (= `beta`).
141
+ - **REGLA #4** — Publish to PyPI with checksum + tag + `latest` version follows the same rigor as wheel deploys.
142
+ - **REGLA #7** — E2E tests cover the production-critical models listed in the master plan.
143
+
144
+ ---
145
+
146
+ ## License
147
+
148
+ MIT — see [`LICENSE`](LICENSE).
149
+
150
+ ---
151
+
152
+ ## Links
153
+
154
+ - 📖 Docs: <https://docs.colabhive.com/mcp>
155
+ - 🛠 Master plan: [`docs/plans/PLAN-mcp-layer-2026-05-22.md`](../../docs/plans/PLAN-mcp-layer-2026-05-22.md)
156
+ - 🐛 Issues: <https://github.com/colabhive/colabhive-api/issues> (label `mcp`)
157
+ - 🔒 Security: `security@colabhive.com` (see top-level `SECURITY.md`)
@@ -0,0 +1,74 @@
1
+ # colabhive-mcp — MCP server for ColabHive
2
+ # Scaffold. Implementation lands in F1 (see docs/plans/PLAN-mcp-layer-2026-05-22.md).
3
+
4
+ [build-system]
5
+ requires = ["hatchling == 1.32.0"]
6
+ build-backend = "hatchling.build"
7
+
8
+ [project]
9
+ name = "colabhive-mcp"
10
+ dynamic = ["version"]
11
+ description = "Model Context Protocol server for ColabHive — expose LLMs, specialists, tools, and your trained models to any MCP client."
12
+ readme = "README.md"
13
+ license = { text = "MIT" }
14
+ requires-python = ">=3.10"
15
+ authors = [{ name = "ColabHive", email = "engineering@colabhive.com" }]
16
+ keywords = ["mcp", "model-context-protocol", "llm", "ai", "agent", "colabhive"]
17
+ classifiers = [
18
+ "Development Status :: 3 - Alpha",
19
+ "Intended Audience :: Developers",
20
+ "License :: OSI Approved :: MIT License",
21
+ "Programming Language :: Python :: 3",
22
+ "Programming Language :: Python :: 3.10",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Software Development :: Libraries :: Python Modules",
26
+ ]
27
+
28
+ dependencies = [
29
+ "mcp >= 0.9, < 2.0",
30
+ "httpx >= 0.27",
31
+ "pydantic >= 2.6",
32
+ "keyring >= 24",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ http = [
37
+ "fastapi >= 0.110",
38
+ "uvicorn[standard] >= 0.27",
39
+ "sse-starlette >= 2.0",
40
+ ]
41
+ dev = [
42
+ "pytest >= 8",
43
+ "pytest-asyncio >= 0.23",
44
+ "respx >= 0.21",
45
+ "ruff >= 0.5",
46
+ "mypy >= 1.10",
47
+ ]
48
+
49
+ [project.scripts]
50
+ colabhive-mcp = "colabhive_mcp.cli:main"
51
+
52
+ [project.urls]
53
+ Homepage = "https://docs.colabhive.com/mcp"
54
+ Documentation = "https://docs.colabhive.com/mcp"
55
+ Repository = "https://github.com/colabhive/colabhive-api"
56
+ Issues = "https://github.com/colabhive/colabhive-api/issues"
57
+ Changelog = "https://github.com/colabhive/colabhive-api/blob/main/packages/mcp-server/CHANGELOG.md"
58
+
59
+ [tool.hatch.build.targets.wheel]
60
+ packages = ["src/colabhive_mcp"]
61
+
62
+ [tool.hatch.version]
63
+ path = "src/colabhive_mcp/__init__.py"
64
+
65
+ [tool.ruff]
66
+ line-length = 100
67
+ target-version = "py310"
68
+
69
+ [tool.ruff.lint]
70
+ select = ["E", "F", "I", "B", "UP", "RUF"]
71
+
72
+ [tool.mypy]
73
+ python_version = "3.10"
74
+ strict = true
@@ -0,0 +1,3 @@
1
+ [pytest]
2
+ asyncio_mode = auto
3
+ testpaths = tests/unit
@@ -0,0 +1,19 @@
1
+ """colabhive-mcp — MCP server for ColabHive.
2
+
3
+ See docs/plans/PLAN-mcp-layer-2026-05-22.md for the full design.
4
+ """
5
+
6
+ __version__ = "0.2.0"
7
+
8
+ from .config import Config, load_config
9
+ from .filters import filter_tools
10
+ from .tools_adapter import manifest_tool_to_mcp, result_to_content_blocks
11
+
12
+ __all__ = [
13
+ "Config",
14
+ "__version__",
15
+ "filter_tools",
16
+ "load_config",
17
+ "manifest_tool_to_mcp",
18
+ "result_to_content_blocks",
19
+ ]
@@ -0,0 +1,4 @@
1
+ """Allow `python -m colabhive_mcp`."""
2
+ from .cli import main
3
+ import sys
4
+ sys.exit(main())