mcpbundles-mcp-connect
Python client library for MCP Connect Auth on MCPBundles.
connect_auth_callback_identity()— canonicalget-user-infoJSON from a verified FastMCP tokenMcpbundlesConnectProvider— FastMCP auth (interim package export until upstream FastMCP merge)mcpbundles_fastmcp()— one-line FastMCP setup (auth + optional origin handshake telemetry)complete_federation()— finish OAuth federation after your sign-in flowMcpbundlesHandshakeMiddleware— origin initialize cohort ingest when telemetry is enabled
Identity in tool callbacks
Connect Auth separates who signed in (sub, optional organization_id, email, roles) from which MCP client is calling (client_id). Pass email and roles in federation complete to mint them on access tokens.
In FastMCP tools, use connect_auth_callback_identity(get_access_token()) for the same JSON shape as the mcp-use get-user-info example. See Tool callback identity.
Path B — bundle URL only
Publish with MCP Connect Auth, set your federation sign-in URL, and have clients connect via https://mcp.mcpbundles.com/bundle/{slug}. No pip install required on your MCP server.
Path A — vendor origin (FastMCP)
from mcpbundles_mcp_connect import connect_auth_callback_identity, mcpbundles_fastmcp
from fastmcp.server.dependencies import get_access_token
mcp = mcpbundles_fastmcp(
"My App",
listing_slug="my-listing",
base_url="https://mcp.example.com",
)
@mcp.tool
def get_user_info() -> dict:
token = get_access_token()
if token is None:
return {"error": "Not authenticated"}
return connect_auth_callback_identity(token)
After sign-in on your web app, complete federation server-side:
from mcpbundles_mcp_connect import complete_federation
await complete_federation(
listing_slug="my-listing",
federation_secret=os.environ["MCPBUNDLES_FEDERATION_SECRET"],
state=state_from_redirect,
subject=user_id,
organization_id=organization_id,
email=user_email,
roles=user_roles,
)
Full setup guide: https://www.mcpbundles.com/docs/integrations/mcp-connect-auth
pip install mcpbundles-mcp-connect
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcpbundles_mcp_connect-0.1.3.tar.gz.
File metadata
- Download URL: mcpbundles_mcp_connect-0.1.3.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bda7891e6ab403150cceaf61b5a53afc78b441a506b74457c211e1a0e10504c9
|
|
| MD5 |
2f50ca1414e464b879580fafa6d73daa
|
|
| BLAKE2b-256 |
b8b2d1e229141df13a67f9b09a8f537125795e025c7938c36e1ddb23a21bd457
|
Provenance
The following attestation bundles were made for mcpbundles_mcp_connect-0.1.3.tar.gz:
Publisher:
release.yml on thinkchainai/mcpbundles-mcp-connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcpbundles_mcp_connect-0.1.3.tar.gz -
Subject digest:
bda7891e6ab403150cceaf61b5a53afc78b441a506b74457c211e1a0e10504c9 - Sigstore transparency entry: 2581147143
- Sigstore integration time:
-
Permalink:
thinkchainai/mcpbundles-mcp-connect@f747b134bc4351ba0a78289a880fa0446b0784da -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thinkchainai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f747b134bc4351ba0a78289a880fa0446b0784da -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcpbundles_mcp_connect-0.1.3-py3-none-any.whl.
File metadata
- Download URL: mcpbundles_mcp_connect-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e4162d5164ed10ec7e04e4471f682c2d30bb41292a72dbad59b78f4a91c3cde
|
|
| MD5 |
2c6ad57770b803af31c9d276d6312881
|
|
| BLAKE2b-256 |
eb051197fae276ebcc1308e43169a3163d6627d552e22bc5ecb8147c18f9ce07
|
Provenance
The following attestation bundles were made for mcpbundles_mcp_connect-0.1.3-py3-none-any.whl:
Publisher:
release.yml on thinkchainai/mcpbundles-mcp-connect
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcpbundles_mcp_connect-0.1.3-py3-none-any.whl -
Subject digest:
3e4162d5164ed10ec7e04e4471f682c2d30bb41292a72dbad59b78f4a91c3cde - Sigstore transparency entry: 2581147155
- Sigstore integration time:
-
Permalink:
thinkchainai/mcpbundles-mcp-connect@f747b134bc4351ba0a78289a880fa0446b0784da -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/thinkchainai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@f747b134bc4351ba0a78289a880fa0446b0784da -
Trigger Event:
push
-
Statement type: