mcp/

directory
v1.0.331 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT

Directories

Path Synopsis
Package adminapi implements the tenant-scoped MCP Admin API domain services (inventory, decision query/explanation, policy validate/simulate/compare, local policy publication, approvals, health and configuration) that PR-9 exposes through the existing Culvert admin HTTP surface and the read-only Management MCP tool catalog.
Package adminapi implements the tenant-scoped MCP Admin API domain services (inventory, decision query/explanation, policy validate/simulate/compare, local policy publication, approvals, health and configuration) that PR-9 exposes through the existing Culvert admin HTTP surface and the read-only Management MCP tool catalog.
Package approval implements the bounded, four-eyes approval state machine that PR-9 uses for both operational approvals (from a PR-6 REQUIRE_APPROVAL decision) and local policy-publication requests.
Package approval implements the bounded, four-eyes approval state machine that PR-9 uses for both operational approvals (from a PR-6 REQUIRE_APPROVAL decision) and local policy-publication requests.
Package authn is the listener-independent MCP token-validation core for both capabilities.
Package authn is the listener-independent MCP token-validation core for both capabilities.
Package canary is the MCP Canary readiness + activation-prerequisite engine (ADR-0035): a pure, I/O-free, deterministically-testable model of exactly what must become true before Culvert may perform its FIRST controlled real MCP upstream execution.
Package canary is the MCP Canary readiness + activation-prerequisite engine (ADR-0035): a pure, I/O-free, deterministically-testable model of exactly what must become true before Culvert may perform its FIRST controlled real MCP upstream execution.
Package canonical turns already-received (never network-fetched) JSON and JSON Schema bytes into ONE deterministic canonical form and its SHA-256 hash, so the tool catalog can fingerprint tools and detect drift independent of cosmetic re-formatting.
Package canonical turns already-received (never network-fetched) JSON and JSON Schema bytes into ONE deterministic canonical form and its SHA-256 hash, so the tool catalog can fingerprint tools and detect drift independent of cosmetic re-formatting.
Package catalog is the listener-independent tool catalog for the MCP Security Gateway (PR-2, Capability B only).
Package catalog is the listener-independent tool catalog for the MCP Security Gateway (PR-2, Capability B only).
Package cpdp implements the signed, immutable Control-Plane → Data-Plane snapshot model for the two MCP capabilities (Gateway and Management), plus the epoch fencing, minimum-DP-version compatibility gate, acknowledgement model, and signed rollback directive that PR-10 (MCP-CPDP-001..003, MCP-HA-001..002) requires.
Package cpdp implements the signed, immutable Control-Plane → Data-Plane snapshot model for the two MCP capabilities (Gateway and Management), plus the epoch fencing, minimum-DP-version compatibility gate, acknowledgement model, and signed rollback directive that PR-10 (MCP-CPDP-001..003, MCP-HA-001..002) requires.
apply
Package apply implements the Data-Plane application and recovery path for signed MCP snapshots: it prepares immutable runtime objects OFF the active request path, runs bounded self-validation and dry policy samples using the EXACT PR-6 compiler/evaluator, durably persists the validated candidate, ratchets the trusted epoch, atomically swaps the capability-local active pointer, retains the previous snapshot, and generates a hash-bound acknowledgement.
Package apply implements the Data-Plane application and recovery path for signed MCP snapshots: it prepares immutable runtime objects OFF the active request path, runs bounded self-validation and dry policy samples using the EXACT PR-6 compiler/evaluator, durably persists the validated candidate, ratchets the trusted epoch, atomically swaps the capability-local active pointer, retains the previous snapshot, and generates a hash-bound acknowledgement.
publication
Package publication implements the Control-Plane publication, acknowledgement tracking, and rollback coordinator for signed MCP snapshots.
Package publication implements the Control-Plane publication, acknowledgement tracking, and rollback coordinator for signed MCP snapshots.
credentials
broker
Package broker is the listener-independent, Gateway-only credential broker for PR-4.
Package broker is the listener-independent, Gateway-only credential broker for PR-4.
profile
Package profile defines the immutable credential-profile model for the PR-4 MCP credential broker (Capability B — the MCP Security Gateway).
Package profile defines the immutable credential-profile model for the PR-4 MCP credential broker (Capability B — the MCP Security Gateway).
provider
Package provider defines the narrow, listener-independent credential-provider boundary for the PR-4 MCP credential broker.
Package provider defines the narrow, listener-independent credential-provider boundary for the PR-4 MCP credential broker.
Package events is the composition root of the PR-8 durable decision-event pipeline.
Package events is the composition root of the PR-8 durable decision-event pipeline.
denial
Package denial implements the attacker-mintable denial lane (MCP-EVENT-007): pre-queue admission control and attacker-rate-independent coalescing for authentication-failure and authorization-denial events, so N equivalent denials in one bucket/window cost O(1) durable records.
Package denial implements the attacker-mintable denial lane (MCP-EVENT-007): pre-queue admission control and attacker-rate-independent coalescing for authentication-failure and authorization-denial events, so N equivalent denials in one bucket/window cost O(1) durable records.
export
Package export is the additive, tenant-separated export foundation for the PR-8 event pipeline (MCP-EVENT-006 / MCP-PRIVACY-002).
Package export is the additive, tenant-separated export foundation for the PR-8 event pipeline (MCP-EVENT-006 / MCP-PRIVACY-002).
model
Package model defines the immutable, versioned decision-event envelope that the PR-8 durable event pipeline persists.
Package model defines the immutable, versioned decision-event envelope that the PR-8 durable event pipeline persists.
spool
Package spool implements the mandatory local encrypted, bounded, durable spool for the PR-8 decision-event pipeline.
Package spool implements the mandatory local encrypted, bounded, durable spool for the PR-8 decision-event pipeline.
state
Package state implements the normative, scoped, restart-persistent, bounded durability degraded-state machine (MCP-OPS-005 / EVENT-MODEL.md §4b.5-4b.7).
Package state implements the normative, scoped, restart-persistent, bounded durability degraded-state machine (MCP-OPS-005 / EVENT-MODEL.md §4b.5-4b.7).
Package execution implements the PR-11 guarded Model-A execution path — the runtime.ExecutionProvider that turns the decision-only Gateway into a bounded, rollout-mode-gated executor.
Package execution implements the PR-11 guarded Model-A execution path — the runtime.ExecutionProvider that turns the decision-only Gateway into a bounded, rollout-mode-gated executor.
Package hostcheck implements MCP-INSP-008: the pure, listener-independent Origin/Host validation decision primitive for inbound MCP requests.
Package hostcheck implements MCP-INSP-008: the pure, listener-independent Origin/Host validation decision primitive for inbound MCP requests.
Package identity is the listener-independent MCP principal + resolved-identity model for both capabilities (Management and Gateway).
Package identity is the listener-independent MCP principal + resolved-identity model for both capabilities (Management and Gateway).
Package inspection is the PR-7 MCP inspection layer composition root.
Package inspection is the PR-7 MCP inspection layer composition root.
destination
Package destination is the PR-7 destination-safety engine: destination extraction, URL/host/IP canonicalization, immutable destination policy, an INJECTED DNS resolver, connect-time pinned resolution + peer verification (MCP-INSP-005 rebinding guard), and a shared reusable redirect guard (MCP-INSP-006).
Package destination is the PR-7 destination-safety engine: destination extraction, URL/host/IP canonicalization, immutable destination policy, an INJECTED DNS resolver, connect-time pinned resolution + peer verification (MCP-INSP-005 rebinding guard), and a shared reusable redirect guard (MCP-INSP-006).
dlp
Package dlp is the PR-7 deterministic, bounded DLP classifier (MCP-INSP-003) and best-effort prompt-injection labeler (MCP-INSP-007).
Package dlp is the PR-7 deterministic, bounded DLP classifier (MCP-INSP-003) and best-effort prompt-injection labeler (MCP-INSP-007).
schema
Package schema is the PR-7 SEMANTIC tool-argument schema validator (MCP-INSP-001).
Package schema is the PR-7 SEMANTIC tool-argument schema validator (MCP-INSP-001).
Package jose is the listener-independent JWS/JWK primitive shared by the MCP token-validation (authn) and sender-constraint (DPoP) layers.
Package jose is the listener-independent JWS/JWK primitive shared by the MCP token-validation (authn) and sender-constraint (DPoP) layers.
Package jsonrpc is the MCP kernel's single strict JSON / JSON-RPC 2.0 decoder and envelope classifier.
Package jsonrpc is the MCP kernel's single strict JSON / JSON-RPC 2.0 decoder and envelope classifier.
Package limits defines the immutable, validated structural resource bounds the MCP protocol kernel enforces.
Package limits defines the immutable, validated structural resource bounds the MCP protocol kernel enforces.
Package management implements the fixed, reviewed Management MCP tool catalog and its dispatch boundary (tools/list + tools/call) for PR-9.
Package management implements the fixed, reviewed Management MCP tool catalog and its dispatch boundary (tools/list + tools/call) for PR-9.
Package mcperr defines the stable, sanitized error model shared by every package of the MCP protocol kernel (PR-1).
Package mcperr defines the stable, sanitized error model shared by every package of the MCP protocol kernel (PR-1).
Package policy is the deterministic, I/O-free MCP policy-decision engine (PR-6, MCP-POLICY-001..007, MCP-TOOL-004/006, MCP-ID-005/006).
Package policy is the deterministic, I/O-free MCP policy-decision engine (PR-6, MCP-POLICY-001..007, MCP-TOOL-004/006, MCP-ID-005/006).
simulate
Package simulate is the PR-6 policy simulator.
Package simulate is the PR-6 policy simulator.
Package protocol layers MCP admission on top of the version-agnostic jsonrpc decoder: supported-version negotiation and adapters (MCP-PROTO-010/011), peer-role- and direction-aware method admission against the Culvert-reviewed registry (MCP-PROTO-002/016), session lifecycle validation (MCP-PROTO-012), and the listener-independent terminal-status transport primitive (MCP-PROTO-017).
Package protocol layers MCP admission on top of the version-agnostic jsonrpc decoder: supported-version negotiation and adapters (MCP-PROTO-010/011), peer-role- and direction-aware method admission against the Culvert-reviewed registry (MCP-PROTO-002/016), session lifecycle validation (MCP-PROTO-012), and the listener-independent terminal-status transport primitive (MCP-PROTO-017).
Package registry is the listener-independent server registry for the MCP Security Gateway (PR-2, Capability B only).
Package registry is the listener-independent server registry for the MCP Security Gateway (PR-2, Capability B only).
Package rollout is the capability-local rollout state model for the MCP Security Gateway and Culvert Management MCP Server (PR-11).
Package rollout is the capability-local rollout state model for the MCP Security Gateway and Culvert Management MCP Server (PR-11).
Package runtime is the PR-5 live MCP listener boundary.
Package runtime is the PR-5 live MCP listener boundary.
Package senderconstraint is the listener-independent MCP sender-constraint core: DPoP proof parsing/verification, a bounded partitioned replay cache, and mTLS certificate-thumbprint binding.
Package senderconstraint is the listener-independent MCP sender-constraint core: DPoP proof parsing/verification, a bounded partitioned replay cache, and mTLS certificate-thumbprint binding.
Package session holds per-session protocol state for the MCP kernel: the bounded outstanding-request table, response correlation, cancellation with ownership/direction rules, completion, and expiration/cleanup.
Package session holds per-session protocol state for the MCP kernel: the bounded outstanding-request table, response correlation, cancellation with ownership/direction rules, completion, and expiration/cleanup.
Package tooltrust is the MCP tool-trust primitive (ADR-0034): a privileged human explicitly trusts ONE exact observed tool fingerprint for ONE declared purpose, and that trust disappears the instant the observed capability no longer matches what was reviewed.
Package tooltrust is the MCP tool-trust primitive (ADR-0034): a privileged human explicitly trusts ONE exact observed tool fingerprint for ONE declared purpose, and that trust disappears the instant the observed capability no longer matches what was reviewed.
Package upstreamclient is the bounded, Model-A upstream MCP client for the Gateway capability (PR-11).
Package upstreamclient is the bounded, Model-A upstream MCP client for the Gateway capability (PR-11).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL