The lockfile and supply-chain scanner for MCP servers and coding agents.

Pin MCP tool schemas and descriptions with split SHA-256 hashes, catch malicious .claude/settings.json hooks and bidi-poisoned .cursor/rules in CI, and replay shadow traces offline to export CEL or Cedar policies. Two Python runtime dependencies: pydantic and pyyaml.

View on GitHub PyPI (piton-cli) Try Vulnerable Demo Repo Release v0.5.1
30-Second Quickstart
# Zero-install instant scan:
uvx piton-cli scan --repo .

# Or test it right now against an intentionally poisoned demo repo (8 CRITICAL/HIGH findings):
git clone https://github.com/gaussian-labs/piton-vuln-demo.git && uvx piton-cli scan --repo piton-vuln-demo

# Install permanently via pipx or pip:
pipx install piton-cli   # or: pip install piton-cli

# Pin MCP servers with split SHA-256 hashes (structural vs. description):
piton init --repo . --probe

# Wrap any local STDIO MCP server in Cursor or Claude Code:
piton wrap --enforce --traces "" --server github -- npx -y @modelcontextprotocol/server-github
Piton CLI live demo: piton scan, piton init, piton lock --diff, and piton replay exporting Cedar

Split-Hash MCP Lockfiles

structural_sha256 hard-blocks schema changes everywhere. description_sha256 hard-blocks third-party rug pulls while warning on internal docstring edits so CI never breaks on typo fixes.

Coding-Agent RCE Lint

Catches .claude/settings.json curl|sh, reverse shells, credential harvesting, and Bash(*) wildcards, plus .vscode/tasks.json folderOpen autorun and hidden bidi Unicode in .cursor/rules.

Shadow Replay → CEL / Cedar

Tokenizes PII while keeping domains and numeric bounds replayable, ingests OTel JSONL spans, calibrates false-block rates offline, and exports rules for agentgateway, ToolHive, AWS AgentCore, or Envoy ext_proc.

Drop Into GitHub Actions

Fails pull requests on third-party MCP rug pulls, structural schema drift, cross-server tool shadowing, and coding-agent config RCE.

.github/workflows/piton.yml
- name: Piton — AI Agent Supply-Chain & MCP Lockfile Gate
  uses: gaussian-labs/piton@v0.5.1
  with:
    scan-only: "true" # or probe: "true" to also diff live MCP manifests
    sarif-file: piton.sarif

Gateway Integration Guides

Compile calibrated policies from git-reviewed piton.yaml straight into your existing MCP gateway: Solo.io agentgateway (CEL) · Stacklok ToolHive (Cedar).

Enterprise Envoy Sidecar (GHCR)

Multi-arch distroless Go sidecar (linux/amd64, linux/arm64) implementing Envoy v3 ext_proc gRPC with live tools/list rug-pull blocking, OIDC JWKS + RFC 8693 OBO, and response projection.

GHCR & Helm
docker pull ghcr.io/gaussian-labs/piton-sidecar:0.5.1

helm install piton-sidecar ./deploy/helm/piton-sidecar \
  --set image.repository=ghcr.io/gaussian-labs/piton-sidecar \
  --set image.tag=0.5.1