Skip to main content

Toolframe MCP Auth

Managed, named bearer keys for MCP clients using Streamable HTTP. Each key contains 32 random bytes (256 bits), encoded as tf_mcp_ plus 43 URL-safe characters. The credential provider owns its managed SQLite store and retains only SHA-256 digests. Full keys are returned once, only when created.

Install this plugin with toolframe-sql-sqlite, the updated SDK/core and FastMCP provider. The optional MCP keys page ships in Dashboard Auth. Operators or grants with system.auth.mcp_keys can create, list and revoke keys; issuance is bounded by the administrator's own business scopes and expiry. MCP keys carry fixed business scopes, never system permissions. Rotation is create, switch the client, then revoke the old key.

[mcp_access]
mode = "protected"
auth_provider = "mcp-auth"

[plugins.mcp-auth]
source = "pypi:toolframe-mcp-auth==0.3.0"
enabled = true

Apply configuration changes with toolframe --home APP apply. Core downloads the pinned package from PyPI and prepares its isolated environment. Creating a key does not change public/protected mode. Protected MCP stays closed with no keys or when its auth provider is missing, disabled, reloading or failed. Local MCP clients also require credentials. Dashboard access has its own policy. Public mode permits anonymous access and ignores authorization headers; enable protected mode to enforce key grants.

Clients use the application's /mcp URL and send Authorization: Bearer <key> on every request. Remote connections must use HTTPS. Full secrets must not be placed in URLs, checked-in configuration, or tool arguments. Revocation/expiry is checked before each new tool admission; already admitted calls finish. Credentials survive reload/restart.

For browser-based Agent authorization, install the independent toolframe-oidc-auth plugin with compatible Core/Auth builds. MCP Auth declares an optional toolframe.oauth.tokens dependency: tf_oauth_ tokens and oauth: credential references are delegated to its verifier with the resource and required scopes intact. Existing keys stay local to this plugin. An absent or unhealthy optional verifier rejects OAuth requests without disabling key verification. OIDC login, consent, discovery and token issuance belong to the shared OIDC plugin; MCP Auth adds no provider-specific authentication flow.

The internal toolframe.mcp-auth service provides create, list, revoke, verify and resolve. Core admits management callers and owns trusted request contexts. These methods are not public business APIs. Back up the plugin's consistent managed SQLite store using the application's normal backup procedure.

uv sync
uv run pytest -q
uv run ruff check src tests
uv build --wheel

PostgreSQL storage

Version 0.2 requires SDK 0.3 and declares PostgreSQL migration SQL alongside the unchanged SQLite history. Provision this plugin’s stable store owner with the PostgreSQL provider before enabling it. The application still runs one Core; retain its private keys and configuration with the application home. Existing SQLite records are not imported automatically.

For release validation and Trusted Publisher setup, see releasing.

For development hooks and contribution rules, see Contributing.

Metadata

Release files for toolframe-mcp-auth 0.3.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 toolframe-mcp-auth 0.3.0
File Size Uploaded Provenance Actions
toolframe_mcp_auth-0.3.0.tar.gz 34.4 kB With provenance Details for toolframe_mcp_auth-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for toolframe-mcp-auth 0.3.0
File Interpreter ABI Platform Actions
toolframe_mcp_auth-0.3.0-py3-none-any.whl Python 3 none any Details for toolframe_mcp_auth-0.3.0-py3-none-any.whl

Total release size: 45.4 kB

Release files / toolframe_mcp_auth-0.3.0.tar.gz

Download URL toolframe_mcp_auth-0.3.0.tar.gz
Size 34.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b22ff5a90143308ef50645e3540cd3ecb6d68abfa4b4dddf2bab3e8447e8168a
BLAKE2b-256 checksum
How to use checksums
7f3483604e177591a71a2f8b41c519503e1157a439ea51879098a33a88fc1aad
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 19, 2026.

Transparency log

Release files / toolframe_mcp_auth-0.3.0-py3-none-any.whl

Download URL toolframe_mcp_auth-0.3.0-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c040aea1f6cf68801a8e7ad5e37ce0352d3ba371e8701e454bcd335fdebb902
BLAKE2b-256 checksum
How to use checksums
d0dc969418c3d3da5276327728ce6d8cc68a5a42c03d8952dd7a1bf092f46526
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 19, 2026.

Transparency log

Security for toolframe-mcp-auth 0.3.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.

Full provenance

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

Select from 2 files

Attestation for toolframe_mcp_auth-0.3.0.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 19, 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.0 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