Skip to main content

MCP Framework 🚀

Universal MCP Server Framework for Streamable HTTP ASGI, Cloudflare Tunnel, OAuth 2.1 & Process Supervisor

Decoupled, reusable transport and lifecycle layer for FastMCP services (e.g. Codexen, Literary Workflow).


📦 Features

  • ASGI Streamable HTTP Transport: Starlette + FastMCP integration supporting SSE, streaming, and atomic JSON-RPC responses.
  • Cache-Busting & Anti-Stale Guarantees: Built-in NoCacheMiddleware ensuring Cache-Control: no-cache, no-store, must-revalidate across all discovery and tool execution routes to prevent intermediate CDN/Cloudflare heuristic caching.
  • Embedded OAuth 2.1 Server: Full RFC 9728 (Protected Resource Metadata), RFC 8414 (Authorization Server Metadata), RFC 7591 (Dynamic Client Registration), and PKCE S256 support for ChatGPT Developer Mode & third-party AI agents.
  • Cloudflare Tunnel Singleton Supervisor: Outbound named tunnel daemon lifecycle management with automated health check and heartbeat recovery.
  • Windows Named Mutex & Process Lifecycle: Prevents duplicate server port bindings, cleans up zombie PIDs, and handles cross-platform single-instance constraints.

🛠️ Installation & Usage

pip install mcp-server-core
# or with uv
uv add mcp-server-core

Or declare in pyproject.toml:

dependencies = [
    "mcp-server-core>=0.2.0",
]

2. As a Git Dependency

# In pyproject.toml
dependencies = [
    "mcp-server-core @ git+https://github.com/yimmr/mcp-framework.git",
]

3. Local Editable Development (Instant Sync across Projects)

In consumer projects (e.g. Codexen or literary-workflow):

uv pip install -e path/to/mcp-framework

Changes made in this repository will instantly reflect across all local consumer services without copying code.


📄 License

MIT License.

Metadata

Release files for mcp-server-core 0.2.0

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

Source distribution (sdist)

Source distribution for mcp-server-core 0.2.0
File Size Uploaded Provenance Actions
mcp_server_core-0.2.0.tar.gz 24.2 kB Without provenance Details for mcp_server_core-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-core 0.2.0
File Interpreter ABI Platform Actions
mcp_server_core-0.2.0-py3-none-any.whl Python 3 none any Details for mcp_server_core-0.2.0-py3-none-any.whl

Total release size: 50.4 kB

Release files / mcp_server_core-0.2.0.tar.gz

Download URL mcp_server_core-0.2.0.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
27909d43e24627b72c807f71125ddb8e3534fad23e67d2d2b7573edf25f5487a
BLAKE2b-256 checksum
How to use checksums
68613784f402679b7b4951020938d8489aabe27bb9b969a3eb8df835a3148140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mcp_server_core-0.2.0-py3-none-any.whl

Download URL mcp_server_core-0.2.0-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9e68feaa1a0b078964941d9c60ff2e7ccb384a467a9c5b99891d0ff4c1f8831
BLAKE2b-256 checksum
How to use checksums
7e8ed9e1193223a784fab2d558d2c10763049079a02a2a0c22693bd04e77dd57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for mcp-server-core 0.2.0

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