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.
The proxy when the platform cannot be reached
sakshi-mcp-proxy with SAKSHI_MCP_ENFORCE=on asks Sakshi before every tool
call. If it cannot get an answer, it refuses the call. A proxy that cannot
ask cannot learn that the agent has been halted, and a kill switch must not
lapse because the platform is down.
| Setting | Effect when Sakshi is unreachable |
|---|---|
| nothing set | every evaluated call is refused (fail-closed) |
SAKSHI_MCP_FAILCLOSED_STAKES=200000 |
calls at or above that stakes are refused; calls below it, or with no stakes, are forwarded |
SAKSHI_MCP_FAIL_OPEN=on |
every call is forwarded; a FAILCLOSED_STAKES threshold, if also set, still applies |
Tools listed in SAKSHI_MCP_EXEMPT_TOOLS are never evaluated, so they are
forwarded either way. Without SAKSHI_MCP_ENFORCE=on the proxy only observes
and nothing is refused.
Upgrading from 0.2.x: the default used to be to forward. Set
SAKSHI_MCP_FAIL_OPEN=on to keep that behaviour.
Metadata
Release files for sakshi-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sakshi_mcp-0.3.0.tar.gz | 65.9 kB | Without provenance | Details for sakshi_mcp-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sakshi_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for sakshi_mcp-0.3.0-py3-none-any.whl |
Total release size: 83.7 kB
Release files / sakshi_mcp-0.3.0.tar.gz
| Download URL | sakshi_mcp-0.3.0.tar.gz |
|---|---|
| Size | 65.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
56d1aa08481abbaffcc0181783ac73d1dd92c561f6c58291a7ad8fa5f2da3076
|
|
BLAKE2b-256 checksum How to use checksums |
71c01ff355307121b32c2e277191f65ec52a4d3fa28f826df8e8b67684961005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Release files / sakshi_mcp-0.3.0-py3-none-any.whl
| Download URL | sakshi_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 17.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd2310cbfc9bc862baf4fdc58123946446a7c86ad19133cb9c4e9ac5e21a33c6
|
|
BLAKE2b-256 checksum How to use checksums |
9f7fb19c529b22877e449ab6fcb3e53c7f189eae190a481868757f3b22d75d84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.7
|
Security for sakshi-mcp 0.3.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.