Skip to main content

Sakshi governance as an MCP server: witness, enforce, and check regulatory readiness from any MCP-capable agent — no SDK integration required.

Project description

sakshi-mcp

Sakshi governance as an MCP server. Any MCP-capable agent or host — Claude Desktop, Cursor, an agent framework — gains three governance tools without integrating the SDK:

Tool When the agent calls it
enforce_action Before a consequential action (move money, change records, contact a customer): returns auto / async_review / sync_review / block. A kill switch or safe-mode outranks the envelope.
witness_decision After executing a consequential tool: records it on the tamper-evident chain and returns the sequence number + record hash (the receipt).
check_readiness Any time: the live regulator-readiness score per instrument (RBI MRM / DPDP / SEBI / IRDAI).

This is the MCP analogue of the Sakshi SDK: opt-in, so it is evidence + advisory enforcement — the agent chooses to consult it. Hard enforcement in the tool path (an intercepting proxy) is the heavier sibling and shares this server's plumbing.

Sakshi never sees raw identifiers here: the server is a client of the Sakshi API, so every call rides the same tokenization and hash-chain path as any other ingest.

Configure it in an MCP host

{
  "mcpServers": {
    "sakshi-governance": {
      "command": "sakshi-mcp",
      "env": {
        "SAKSHI_API_URL": "https://sakshi.your-bank.internal",
        "SAKSHI_MCP_API_KEY": "sks_..."
      }
    }
  }
}

SAKSHI_API_URL defaults to http://localhost:8000; SAKSHI_MCP_API_KEY is a Sakshi ingest key (falls back to SAKSHI_API_KEY).

Run it directly

pip install sakshi-mcp
SAKSHI_API_URL=... SAKSHI_MCP_API_KEY=sks_... sakshi-mcp        # stdio (default)
SAKSHI_MCP_TRANSPORT=streamable-http sakshi-mcp                 # serve over HTTP

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

sakshi_mcp-0.2.0.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

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

sakshi_mcp-0.2.0-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file sakshi_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: sakshi_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for sakshi_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9430f75b67bdbc41bb85d25550db009f41984246a557680157a9c8f0808f333c
MD5 6bea7ad9513c1bf2b6837a03fac3444c
BLAKE2b-256 d5617841d902e2b6249c7f27ec0cf225a02e47e6cd1a5664c03cb8dfef0fbbc4

See more details on using hashes here.

File details

Details for the file sakshi_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sakshi_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for sakshi_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de67d4c5132b76b3a4f74d6211e360f57ea7b2e3dc19f5a3b8a3b8647a6eb9ee
MD5 72e2e81fedbf43416c450ab9e5bd7172
BLAKE2b-256 ad04a900aba6166b04fc598d076b6d90c229f659a926cbf8a8b896bae8f3ce98

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