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-storage-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.2.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.

Metadata

Release files for toolframe-mcp-auth 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 toolframe-mcp-auth 0.2.0
File Size Uploaded
toolframe_mcp_auth-0.2.0.tar.gz 32.0 kB Details

Built distribution (wheel)

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

Total release size: 43.0 kB

Release files / toolframe_mcp_auth-0.2.0.tar.gz

Download URL toolframe_mcp_auth-0.2.0.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
81f03d427816a3ae31f1ebf6e8f4f868b21b8cf2e2b07f62e0a5e7e71ecdc972
BLAKE2b-256 checksum
How to use checksums
ed6179ee7c01b899a48014eb738dd1035c5caeeda496387d086ad80f3dfda805
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 14, 2026.

Transparency log

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

Download URL toolframe_mcp_auth-0.2.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a8f94308408fac378e06d8210fea6a0e09d1a16b32a5583bf6634715ad25c13b
BLAKE2b-256 checksum
How to use checksums
f79688b8076bba3f5b24261bc6a5582e7f567445aa2645cd31b0c86514726462
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 14, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

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