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.2"
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.3 requires SDK 0.4 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.

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-mcp-auth 0.3.2

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.2
File Size Uploaded Provenance Actions
toolframe_mcp_auth-0.3.2.tar.gz 34.8 kB With provenance Details for toolframe_mcp_auth-0.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 45.9 kB

Release files / toolframe_mcp_auth-0.3.2.tar.gz

Download URL toolframe_mcp_auth-0.3.2.tar.gz
Size 34.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5288bdc265ae03f3549d2b1817175ceb943efee270dac581f3f7b80f317ef86c
BLAKE2b-256 checksum
How to use checksums
a5194f82db77bc7cda7a43575278aaf6bd403369efb3e47734d193f6fdd7cecc
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 26, 2026.

Transparency log

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

Download URL toolframe_mcp_auth-0.3.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42dd3c2a206b3772902b01304a30c25fb023fd27e95a4dcf4cee872f2c81c28d
BLAKE2b-256 checksum
How to use checksums
fca9da0067d5ab228ae350efa72187d5ba8968c5c75149a3c59d291c5c985567
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 26, 2026.

Transparency log

Security for toolframe-mcp-auth 0.3.2

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.2.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 26, 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.2 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