kx-auth-core
The lean, deliberately fastmcp-free auth core shared by the KX MCP composition container
(kx-mcp-core), the backend bundles, and the client-side kx auth CLI (kx-auth-cli). It holds
the auth mechanisms so every consumer binds to one implementation:
- Inbound config + verification —
AuthSettings(theKX_MCP_AUTH*contract) and a joserfcverify_tokenreturning a categorised verdict (ok/error/auth_required/denied). joserfc is the same JOSE library FastMCP'sJWTVerifieruses, so server and CLI verification cannot drift. - Outbound identity —
exchange(config, subject_token)over theregister_outbound_strategyregistry (passthrough/rfc_8693/service_account/ custom), with theOutboundConfig/OutboundCredentialshapes. Pure token→credential; no fastmcp. - Authorization contract —
AuthzRequest/AuthzDecision(boolean-first, with anobligationsslot for scope-down), theAuthzAdapterprotocol, and theregister_authz_adapter/decideregistry behind the container's@authorizeseam. - Identity assertion projection —
project_principal/project_from_claims, the fastmcp-free (and pykx-free) claims→dict projection the kdb-x identity-assertion path ferries to q.
Who should depend on it
Backend bundles (for exchange and the authz contract) and client-side tooling (the kx auth
CLI). If you are assembling a server, depend on kx-mcp-core instead — it re-exports these
seams. Two invariants to respect when contributing: this package never imports fastmcp (it ships
where the agent/client runs), and verify_token must stay in agreement with the container's
JWTVerifier (pinned by contract tests in the parent repo).
Documentation
Full reference in the kx-mcp-server-container
repository: the auth guide
(inbound modes, outbound strategies, authorization) and the design specs (token-exchange,
identity-assertion, authorization). All workspace packages version in lockstep from release tags.
Metadata
Release files for kx-auth-core 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kx_auth_core-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for kx_auth_core-0.5.0-py3-none-any.whl |
Release files / kx_auth_core-0.5.0-py3-none-any.whl
| Download URL | kx_auth_core-0.5.0-py3-none-any.whl |
|---|---|
| Size | 21.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26cbd10edecf7b8cd0c92edd133fe377b881cd49eedd7b1895d5651566d16bbc
|
|
BLAKE2b-256 checksum How to use checksums |
5bac89bf0fa3d6bec00dc3d63b34108b1abed3a854e42a694034602a26710466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for kx-auth-core 0.5.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.