Skip to main content

maigp-mcp

AIGP governance for MCP (Model Context Protocol) tool invocations.

Part of MAIGP — the Mediated AI Governance Protocol: a runtime consent / scope / evidence layer for AI systems. Every governed call is CHECKed before it runs (policy, scope, jurisdiction, circuit-breaker) and RECORDed + TRACEd as tamper-evident evidence after.

What it governs

Governs MCP tool calls — policy, scope, consent, classification, and evidence.

Governance model

This adapter maps the framework's lifecycle onto the AIGP agent-governance loop provided by maigp-agent-core:

Framework event AIGP action
run / invocation start CHECK (pre_invoke) — allowed? under what authority?
each model reply token accounting (on_model_call)
each tool / function call tool governance (on_tool_call)
run complete RECORD + TRACE (post_invoke)
failure on_error (recorded, then re-raised)

Install

pip install maigp-mcp

Pulls in maigp-agent-core (shared lifecycle) and, transitively, maigp-client.

Quick start

from maigp_mcp import GovernedMCPClient, MCPGovernanceConfig

config = MCPGovernanceConfig(
    mode="ENFORCE",
    gov_url="https://gov.example.com",
    app_id="mcp-gateway",
    hmac_secret="...",
)
governed = GovernedMCPClient(mcp_client, config)

# Pre-check → execute only if allowed → post-record evidence
result = await governed.call_tool("wiz", "listVulnerabilities",
                                  {"severity": "HIGH"})

Modes & exports

mode="ENFORCE" blocks disallowed calls (raising GovernanceDenied); monitor-only modes record without blocking. Exports include AccessDecision, GovernanceDenied, and ToolEvidence.


License: Proprietary. © Kanjani AI Research & Causum.

Metadata

Release files for maigp-mcp 1.1.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 maigp-mcp 1.1.0
File Size Uploaded Provenance Actions
maigp_mcp-1.1.0.tar.gz 13.4 kB Without provenance Details for maigp_mcp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maigp-mcp 1.1.0
File Interpreter ABI Platform Actions
maigp_mcp-1.1.0-py3-none-any.whl Python 3 none any Details for maigp_mcp-1.1.0-py3-none-any.whl

Total release size: 25.0 kB

Release files / maigp_mcp-1.1.0.tar.gz

Download URL maigp_mcp-1.1.0.tar.gz
Size 13.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a6c968970dc11c373c542d56bd9de71cedf2038896bc937027e52c534860dc07
BLAKE2b-256 checksum
How to use checksums
9fa1003de0d8a35cbdbb49fb5e5612c4bbb0adbea158f19aae9721d5a27b6204
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / maigp_mcp-1.1.0-py3-none-any.whl

Download URL maigp_mcp-1.1.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c9a036e0cab8f28f7361e7b6dfe96859994d2e02c49a3282922307474ef938b7
BLAKE2b-256 checksum
How to use checksums
48b1830e504497ca27b9e6c0d781388799da8adc3c406b13c16398dd34c05c12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for maigp-mcp 1.1.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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No 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