Skip to main content

Toolframe FastMCP provider

toolframe-fastmcp publishes the accepted Toolframe MCP tool catalog through FastMCP 4.0.0 over stateful Streamable HTTP at /mcp. The provider binds one private loopback listener during activation and reports its URL through plugin health; the core gateway owns any public forwarding.

Install

Install the provider into a running Toolframe application:

toolframe --home APP plugin add pypi:toolframe-fastmcp==0.3.1 --enable

Core resolves dependencies and manages the provider's isolated Python environment. The Entry Register template already includes this provider.

All private-listener requests require a live core-issued request credential. Core admits public requests or validates external MCP bearer keys according to its independent [mcp_access] policy. FastMCP never receives the external secret; it resolves the temporary credential through RuntimeContext.mcp_access, filters tool discovery by the allowed resources, and carries the credential back through resource_call. Core rechecks scopes, expiry and revocation at tool admission. Stateful MCP sessions bind to the credential record. Use this provider together with the matching SDK/core changes; an older core cannot supply request credentials. See the MCP authentication guide in the core repository for configuration details.

Stateful sessions expire after 1800 seconds with no HTTP request in flight. The provider's optional session_idle_timeout configuration accepts a positive, finite number of seconds and takes precedence over FastMCP's FASTMCP_HTTP_SESSION_IDLE_TIMEOUT environment setting. When neither is set, the provider uses 1800 seconds; inactivity expiry cannot be disabled with null. An open GET event stream or an in-flight tool request keeps a session active. After expiry, the old session ID returns HTTP 404 and the client must initialize a new session. Client DELETE and provider shutdown also release sessions.

Core sends each complete catalog epoch through prepare, commit, and abort. Preparation builds a frozen candidate without changing the live list. Commit swaps the entire list atomically, and a later commit withdraws tools that are absent from that epoch. Core replaces this provider process when the public tool schema or catalog changes, so MCP clients reconnect and list tools again after replacement.

Every tool belongs to one SDK OwnedResource. Its call is routed through the SDK RuntimeContext.resource_call boundary with the owned resource key, declared method, and prepared epoch. The provider does not import business implementations, access business storage, or expose MCP resources and prompts.

CI and publishing

See CI and release setup for the shared local validation command, the GitHub Actions checks, and manual PyPI Trusted Publishing setup. Validation builds the pinned SDK in a disposable workspace, runs the plugin tests, checks the distributions, and exercises a clean installed provider wheel with its real runtime dependencies.

Gateway acceptance

After building the sibling core launcher and workspace wheelhouse:

uv run python scripts/verify-gateway.py \
  --binary ../toolframe-core/target/release/toolframe \
  --wheelhouse ../toolframe-core/wheelhouse

This creates a disposable application and two ordinary fixture plugins. Two real FastMCP clients exercise admitted-call draining, a backend-only replacement that retains MCP sessions, a catalog/schema change that replaces the MCP worker, and explicit reconnection. Tool/document withdrawal, schema rejection and unrelated worker continuity are checked through the actual core gateway. Evidence is saved to dist/gateway-evidence.json; the script stops its server and prints the log directory on failure. It does not certify independent desktop MCP clients.

Codex MCP client acceptance

With a disposable Entry Register application running, use the installed Codex client to discover the actual tool schema and call it through the core gateway:

# A fresh demo has zero entries; adjust --expected-count for your test data.
uv run python scripts/verify-codex.py \
  --url http://127.0.0.1:9876/mcp --expected-count 0

The probe uses the public Codex app-server mcpServerStatus/list and mcpServer/tool/call APIs in an ephemeral thread. It checks a valid read and an out-of-range argument. --expected-max 10 verifies a changed catalog after reload; --expect-absent checks withdrawal after disabling the demo plugin. Each run makes a fresh client connection and writes schema, connection state and actual results to dist/codex-evidence.json (override with --output). Only local HTTP endpoints are accepted. It neither starts the Toolframe server nor modifies data.

Verified with codex-cli 0.154.0. The probe replaces the child process's MCP configuration and disables unrelated plugins for that process; it never writes global Codex configuration or copies credentials. It does not initiate a model turn or drive the desktop UI. Noninteractive codex exec can refuse a tool call when its approval policy requires user input; discovery alone is not proof that such a model call succeeded. Store the probe output with the tested revision and client version in the release evidence.

macOS Intel release artifact

The provider pins cryptography==50.0.2. Upstream stopped publishing macOS Intel wheels in cryptography 49; see the upstream changelog. Toolframe's Intel launcher automatically downloads a companion from its matching GitHub Release and verifies the SHA-256 pinned into the executable. An ordinary PyPI-only installation on Intel may attempt a source build and require native build dependencies.

# From this repository; requires Xcode command-line tools, make, Perl, Rust and uv.
# On Apple Silicon, also install Rosetta and the x86_64-apple-darwin Rust target.
uv run python scripts/build-macos-intel.py --out-dir ../toolframe-core/wheelhouse

The script verifies pinned source SHA-256 values, builds OpenSSL 4.0.3 in a temporary private prefix, and statically links it into the Python 3.14 Intel cryptography wheel with a macOS 12 deployment target. It makes no system OpenSSL installation. Publish this wheel as a separate Core GitHub Release asset; retain its upstream license metadata. No Python wheel is embedded in the launcher. Updating either native dependency requires updating the pins, checksums and release acceptance together.

Qualify the exact Intel release on its native runner. Rosetta, physical Intel hardware and the macOS 12 minimum are separate verification environments.

For release validation and Trusted Publisher setup, see releasing.

License

Licensed under the Apache License, Version 2.0. See LICENSE and NOTICE.

For development hooks and contribution rules, see Contributing.

Plugin dependencies allow compatible SDK 0.x updates from the declared minimum. See the SDK compatibility policy for API guarantees and minimum/latest verification.

Metadata

Release files for toolframe-fastmcp 0.3.1

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

Source distribution (sdist)

Source distribution for toolframe-fastmcp 0.3.1
File Size Uploaded Provenance Actions
toolframe_fastmcp-0.3.1.tar.gz 85.9 kB With provenance Details for toolframe_fastmcp-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toolframe-fastmcp 0.3.1
File Interpreter ABI Platform Actions
toolframe_fastmcp-0.3.1-py3-none-any.whl Python 3 none any Details for toolframe_fastmcp-0.3.1-py3-none-any.whl

Total release size: 98.7 kB

Release files / toolframe_fastmcp-0.3.1.tar.gz

Download URL toolframe_fastmcp-0.3.1.tar.gz
Size 85.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fd5981ace6f64e19e1e797c9abe593e08392f7b606b84a2c4a482f7d5306430
BLAKE2b-256 checksum
How to use checksums
a17ea19e157509c301e3fdc5f38bfcba24979a0b42e04395b1e19ece42b35f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / toolframe_fastmcp-0.3.1-py3-none-any.whl

Download URL toolframe_fastmcp-0.3.1-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b55412e17c7f8388b44de240bfe56c4019b80877a967ffbed135fa19cfc67622
BLAKE2b-256 checksum
How to use checksums
96e2bdc8fd76e70f490af112c2a7ac0e097dfaf48a18a806ec1120af017a98a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for toolframe-fastmcp 0.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for toolframe_fastmcp-0.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files Full provenance

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