Skip to main content

Thoth governance proxy for Claude Desktop / MCP servers

Project description

aten-thoth-mcp-proxy

Thoth governance sidecar for Claude Desktop and MCP servers. Intercepts every tools/call and enforces HIPAA/SOC2 policy before the upstream MCP server executes.

Install

pip install aten-thoth-mcp-proxy
thoth --version

Usage

Wrap a single MCP server

thoth run \
  --agent-id gdrive \
  --tenant-id your-org \
  --enforcement-mode progressive \
  --api-key "$THOTH_API_KEY" \
  -- npx -y @modelcontextprotocol/server-gdrive

Wrap your entire Claude Desktop config (idempotent)

thoth wrap-config \
  --tenant-id your-org \
  --api-key "$THOTH_API_KEY" \
  --enforcement-mode progressive \
  --output ~/Library/Application\ Support/Claude/claude_desktop_config.json \
  ~/Library/Application\ Support/Claude/claude_desktop_config.json

Show governance state

thoth status

Emit endpoint health for Jamf Smart Groups

thoth health --json

Environment variables

Variable Description
THOTH_API_KEY API key from your Thoth dashboard
THOTH_ENFORCER_URL Override enforcer URL (default: Thoth cloud)
THOTH_USER_ID Per-user identifier for audit trail (email or LDAP uid)
THOTH_GOVAPI_URL GovAPI base URL for endpoint registration/check-in
THOTH_GOVAPI_BEARER_TOKEN Optional bearer token for GovAPI auth
THOTH_GOVAPI_API_KEY Optional API key header for GovAPI auth
THOTH_ENDPOINT_ID Stable endpoint ID override (defaults to hostname)
THOTH_ENROLLMENT_SOURCE Enrollment source (jamf, intune, manual, unmanaged)
THOTH_ENV Endpoint environment (dev, staging, prod)
THOTH_HEARTBEAT_INTERVAL_SECONDS Heartbeat cadence to GovAPI (default: 60)
THOTH_TLS_VERIFY Enable strict TLS certificate validation for outbound HTTP (true by default)
THOTH_TLS_CA_BUNDLE Optional custom CA bundle path used for enforcer/GovAPI TLS validation
THOTH_TLS_PINNED_CERT_SHA256 Optional comma-separated SHA-256 leaf cert fingerprints for certificate pinning (sha256:<hex> or plain 64-char hex)
THOTH_TLS_PIN_CACHE_SECONDS Certificate pin verification cache TTL in seconds (default: 300)
THOTH_TLS_REQUIRE_AWS_BACKED_CERTS Require TLS cert trust metadata to be AWS-backed (THOTH_TLS_AWS_ACM_CERT_ARN or THOTH_TLS_AWS_PRIVATE_CA_ARN)
THOTH_TLS_AWS_ACM_CERT_ARN ACM certificate ARN used for enforcer/GovAPI TLS trust attestation
THOTH_TLS_AWS_PRIVATE_CA_ARN ACM Private CA ARN used for enforcer/GovAPI TLS trust attestation
THOTH_REQUIRE_NON_ROOT Require proxy to run as non-root (true by default in staging/prod)
THOTH_EXPECTED_PROXY_USER Optional expected OS username for proxy runtime validation
THOTH_EXPECTED_PROXY_UID Optional expected OS uid for proxy runtime validation

Session intent (HIPAA minimum-necessary)

thoth run \
  --agent-id phi-boundary \
  --tenant-id your-org \
  --session-intent phi_eligibility_check \
  --enforcement-mode block \
  --api-key "$THOTH_API_KEY" \
  -- npx -y @mcp/server-phi-boundary

Enterprise fleet deployment

See Enterprise Fleet Deployment for Jamf + Intune deployment guides.

Why the proxy is open source

The proxy is intentionally open source. Security and compliance buyers — the exact people deploying this — need to audit what runs on their employees' machines. An opaque binary raises questions; readable source closes them.

The moat is not here. The proxy is ~250 lines that intercept a JSON-RPC call and POST to an enforcer. Anyone can write this. What competitors cannot replicate is the enforcer logic, the MOSES behavioral baselines, the compliance packs, and the session telemetry that compounds with every governed customer. All of that is server-side and never ships in this package.

Stable public API

The following are part of the stable public API surface as of v0.1.0. Breaking changes require a major version bump and a migration guide:

Interface Stable
thoth run CLI flags
thoth wrap-config CLI flags and intent_map.json schema
thoth status output format
--session-intent flag name and string values
THOTH_API_KEY, THOTH_ENFORCER_URL, THOTH_USER_ID env vars
JSON-RPC error codes -32001 (BLOCK) and -32002 (STEP_UP)

The session_intent string values (e.g. phi_eligibility_check, calendar_management) are defined by the enforcer's compliance packs, not this package. New intent values are additive and non-breaking; removing or renaming an existing value is a breaking change on the enforcer side.

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aten_thoth_mcp_proxy-0.1.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aten_thoth_mcp_proxy-0.1.1-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

Details for the file aten_thoth_mcp_proxy-0.1.1.tar.gz.

File metadata

  • Download URL: aten_thoth_mcp_proxy-0.1.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aten_thoth_mcp_proxy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cdebde6dc81789556f04d3a14e264521da88db02a1c7b7effeab49e0cc857b41
MD5 2522ab72c6b53a0ded62a2eaad88e670
BLAKE2b-256 52b02fc16c63f09150154b323620ee6f87be08381ee492767d651daa7c280168

See more details on using hashes here.

File details

Details for the file aten_thoth_mcp_proxy-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aten_thoth_mcp_proxy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8523e26c5850408d11a464b150ce90dc32295de44e9745138549c5ec94ef1c2c
MD5 120fa447023a2b29ada10088de921982
BLAKE2b-256 35422426c736d87cc8def726bbef9feed665260d78497cf4bbd118cf5d483868

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page