mcpindex gate — the in-path, zero-egress-by-default trust-to-act client for MCP tool calls (open core).
Project description
mcpindex-gate
The in-path drift gate for agent tool calls — the open-core client of mcpindex.ai. It runs on your host with zero egress and checks every MCP tool definition against your own pinned baseline before a call goes out.
Renamed: previously published as
mcpindex-preflight. That name remains a deprecated alias that depends on this package. New installs should usemcpindex-gate.
What it does
mcpindex-gate produces a drift decision — PROCEED / HOLD /
INCONCLUSIVE — by diffing the live tool contract against the contract you pinned.
If a server silently changes a tool's schema, description, or surface, the gate can
HOLD the call and surface why.
from mcpindex_gate import wrap, PreflightPin, PreflightHold
session = wrap(your_mcp_client_session, pin=PreflightPin(path="~/.mcpindex/pin.json"))
try:
result = await session.call_tool("transfer_funds", {...})
except PreflightHold as hold:
# The tool contract drifted from your pin — inspect `hold` and decide.
print(hold)
wrap() accepts any duck-typed client session; this package does not depend on
the mcp SDK.
What it is — and is not
- It is a contract diff, not a safety oracle. It detects that a tool changed; it does not judge whether the change is malicious.
- A
HOLDmeans "this drifted from your pin — look before you act." It is advisory. It does not block attacks, guarantee safety, or make a server tamper-proof. - It mints no clearance verdict. The offline client can detect drift and HOLD; it can never publish a "SAFE" verdict.
Install
uv tool install mcpindex-gate
One-click host wiring + a resident auto-onboard watcher are available via the installer at https://mcpindex.ai/install.sh.
Drift telemetry (opt-in, OFF by default)
The gate can report that a tool's contract drifted — so mcpindex can track drift on servers it can't crawl itself (private / auth-gated). It is off by default and sends nothing unless you turn it on:
export MCPINDEX_DRIFT_TELEMETRY=detection # off (default) | detection | contribute
When enabled, each tool you pin and each contract drift sends one one-way signal. See https://mcpindex.ai/privacy and https://mcpindex.ai/docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 mcpindex_gate-0.7.0-py3-none-any.whl.
File metadata
- Download URL: mcpindex_gate-0.7.0-py3-none-any.whl
- Upload date:
- Size: 438.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
acfd3f43800ea50700cc959d443cf94465333e17c1331baef4c76416f9b4df73
|
|
| MD5 |
3c1c4f1535b26c16f4f9990be38d1d3c
|
|
| BLAKE2b-256 |
dbea528b777bac8c907cd273c244888928c316ff47da5cdf1983e471c035012d
|
Provenance
The following attestation bundles were made for mcpindex_gate-0.7.0-py3-none-any.whl:
Publisher:
release-preflight.yml on mcpindex-ai/mcpindex-trust
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcpindex_gate-0.7.0-py3-none-any.whl -
Subject digest:
acfd3f43800ea50700cc959d443cf94465333e17c1331baef4c76416f9b4df73 - Sigstore transparency entry: 2156149770
- Sigstore integration time:
-
Permalink:
mcpindex-ai/mcpindex-trust@bb4f68081596d05e3cdd99b40cc2bcaca5bcb7a6 -
Branch / Tag:
refs/tags/gate-v0.7.0 - Owner: https://github.com/mcpindex-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-preflight.yml@bb4f68081596d05e3cdd99b40cc2bcaca5bcb7a6 -
Trigger Event:
push
-
Statement type: