hedron-mcp
Deny-by-default MCP Streamable HTTP projection for Hedron.
Disabled and empty until resources and tools are explicitly registered. MCP never grants authority beyond the authenticated principal. Installing the package without registrations remains a no-op empty server.
Also available as the flagship extra hedron[mcp].
Package maturity: Beta (0.2.x) · pin >=0.2.0,<0.3
Production-grade for the declared Supported inventory (phase 0.32 / RFC-0065).
Mutating tools remain Experimental (allow_mutations=True).
Install
pip install "hedron-mcp>=0.2.5,<0.3"
# or
uv add "hedron-mcp>=0.2.5,<0.3"
# via flagship extra:
pip install "hedron[mcp]>=1.0.0"
Requires Python 3.11–3.14.
Quick start
from hedron import Hedron
from hedron_mcp import McpProjection, McpResource, McpTool, mount_mcp
app = Hedron(
title="MCP demo",
security="standard",
session_secret="dev-only",
)
# Prefer session / host auth after SessionMiddleware is installed.
# Do not read request.session without that middleware.
projection = McpProjection(
enabled=True,
principal_resolver=lambda request: getattr(request, "user", None),
)
projection.register_resource(McpResource(uri="hedron://page/home", name="home"))
projection.register_tool(
McpTool(
name="status",
schema={"type": "object", "properties": {}},
mutate=False,
handler=lambda: {"ok": True},
)
)
mount_mcp(app, projection)
License
MIT
Metadata
Release files for hedron-mcp 0.2.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hedron_mcp-0.2.7.tar.gz | 18.4 kB | Without provenance | Details for hedron_mcp-0.2.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hedron_mcp-0.2.7-py3-none-any.whl | Python 3 | none | any | Details for hedron_mcp-0.2.7-py3-none-any.whl |
Total release size: 39.2 kB
Release files / hedron_mcp-0.2.7.tar.gz
| Download URL | hedron_mcp-0.2.7.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
579d9a8a8285ef9a9ebeccc5eb4863db7aa6462649b52527934fb5227575794f
|
|
BLAKE2b-256 checksum How to use checksums |
eaf6185c18aef0489e08e71ed631e6b3c51d1ec453fafe8223808d318d7dfd8e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / hedron_mcp-0.2.7-py3-none-any.whl
| Download URL | hedron_mcp-0.2.7-py3-none-any.whl |
|---|---|
| Size | 20.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1fcdce80421648ca3bef7bec5f6de4165e917a45279ad733f2eafdf9eb0d3ee
|
|
BLAKE2b-256 checksum How to use checksums |
cfd615254fc30370b0c8b6c73cbb370f7ee380becc5be2f6730d2d928388acea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.1 {"installer":{"name":"uv","version":"0.12.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for hedron-mcp 0.2.7
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.