Pramana Mcp

io.github.loopg由 GitHub 帳號 loopg 發布v0.1.3更新於 Oct 24, 2026

Read your recorded AI agent runs, and what changed when you swapped a model or prompt.

已驗證STDIO僅桌面安全與監控AI 與機器學習

概覽

AI 產生的概覽

唯讀的 MCP 伺服器,讓助理檢視 Pramana 記錄的 AI 代理程式執行,並離線驗證已簽章的證據包。

可以做什麼
列出並讀取已記錄的代理程式執行,包含步驟、模型呼叫、帶參數的工具呼叫與結果;過長內容會被截斷並明確標示。列出並讀取將提示詞或模型變更與生產執行比對的比較作業,顯示哪些決策出現行為變化、哪些只是措辭變化、哪些執行中斷。使用另外提供的公開金鑰離線驗證已簽章的證據包。沒有任何工具會啟動重播或比較。
適用情境
適用於已用 Pramana 對代理程式埋設追蹤,並希望助理梳理某次特定執行的過程,或在發布前確認模型或提示詞變更是否改變了決策。也適合檢查廠商提供的證據包是否完整。
執行需求
透過 stdio 在本機執行,使用 uvx 視需要從 pramana-mcp 的 PyPI 套件取得。需要在 PRAMANA_API_KEY 中提供 Pramana 的工程師或管理員 API 金鑰;稽核員金鑰讀取執行記錄會回傳空白。僅自架時才需要 PRAMANA_API_URL。驗證證據包需要證據包檔案與公開金鑰檔案,無需帳號或網路。
安裝前請注意
API 金鑰是敏感憑證,可存取已記錄的提示詞與回應,需謹慎保管。此伺服器依設計為唯讀;產生比較會花費金錢,且只在命令列中完成。證據包驗證只能證明記錄自簽章後未被更動,不能證明記錄涵蓋了全部事件。比較查詢只涵蓋最近 20 筆執行,較早的比較可能查不到。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Pramana Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Pramana MCP server

mcp-name: io.github.loopg/pramana-mcp

Decide whether a prompt or model change is safe to ship, by running it against your own production runs.

Pramana is a flight recorder for AI agents. It records every non-deterministic decision your agent makes in production, replays any past run exactly against your changed code, and reports which decisions moved — not which sentences got reworded.

This MCP server lets an assistant read what Pramana recorded, and check a signed evidence bundle offline. It is read-only. There is deliberately no tool that starts a replay or a comparison: a sandboxed batch calls the model for real on every trace, so it spends money, and an MCP tool is a button any assistant can press without a person deciding. Producing a comparison stays a CLI verb behind its own confirmation gate.

Install

Nothing to install — uvx fetches it on demand.

Claude Desktop

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "pramana": {      "command": "uvx",      "args": ["pramana-mcp"],      "env": {        "PRAMANA_API_KEY": "<your-engineer-or-admin-api-key>"      }    }  }}

Claude Code

console
$ claude mcp add pramana --env PRAMANA_API_KEY=<your-engineer-or-admin-api-key> -- uvx pramana-mcp

Create a key in Settings → API keys at reliai.in. Use an engineer or admin key — an auditor key deliberately never receives recorded prompts or responses, so get_trace would come back empty. Self-hosting? Set PRAMANA_API_URL to your own API.

Tools

list_traces

List recorded AI agent runs (traces) captured by Pramana, optionally filtered by agent, status or time range.

"What agent runs did we record last Tuesday?"

json
{ "agent": "refund-agent", "since": "2026-09-22T00:00:00Z", "limit": 20 }

get_trace

Get one recorded agent run: its steps, model calls, tool calls with arguments, and outcome.

"Walk me through what the agent did in run loan-07 — which tools did it call, and with what?"

json
{ "trace_id": "loan-07-5a6eef" }

Long payloads are truncated, and the response says so rather than looking complete.

list_model_diffs

List comparison runs that checked a prompt or model change against recorded production runs.

"Have we compared anything against production since the model upgrade?"

json
{ "since": "2026-09-20T00:00:00Z", "limit": 20 }

get_model_diff

Get the findings of one comparison run: which decisions changed behaviourally, which were cosmetic, and which runs halted.

"What changed when we moved to the new model last Tuesday?"

json
{ "diff_id": "mdr_9f2c1a", "trace_id": "loan-07-5a6eef" }

Returns bucket counts first, then root findings, then consequent ones — never merged. One root cause that produced forty downstream differences is one thing to investigate, not forty. Passing trace_id is optional but much faster (see What the API could not do below).

verify_bundle

Verify a Pramana signed evidence bundle offline, with no account and no network access.

"Here's the evidence bundle the vendor sent. Is it intact?"

json
{ "bundle_path": "./bundle.json", "public_key_path": "./pramana-public-key.txt" }

public_key_path is required. The public key shipped inside a bundle is never used to check that same bundle — that would defeat the point.

A pass proves the bundle has not been altered since it was signed. It does not prove that what was captured was everything that happened. This is a proof of record, not a judgement of conduct.

What the API could not do

Two tools are worse than they should be, and it is the API's fault rather than a design choice:

  • There is no account-wide endpoint for comparison runs. They are only reachable per trace (/v1/traces/{id}/model-diffs), so list_model_diffs and a get_model_diff without trace_id walk the 20 most recent traces. A comparison against an older trace will not be found. Every response says so in a notes field rather than quietly returning a short list. The bound is 20 rather than something larger because the walk is that many sequential round trips: measured against the production API, 50 took 6.0s and 20 takes 2.4s.
  • /v1/traces returns agent_count, not agent ids, so filtering by agent means opening each trace. That filter is applied to the 20 most recent traces only, and says so.

Limitations

These are the same limitations as the SDK. They are not softened for a registry listing.

  • You cannot import existing conversation logs. Replay needs the execution trace, and a transcript does not carry one. Your corpus starts the day you instrument.
  • It reports that a decision changed, never whether the change is good. Judging a changed decision is your call.
  • Sandboxing only covers tool calls you wrapped. In a sandboxed batch the tool calls you have wrapped are served from the recording and never executed, and the model is called for real because the new model is the thing you are testing. In a plain replay, nothing leaves the process at all: outbound network access is blocked at the process level, below whatever HTTP client you use. A tool call you did not wrap is invisible to Pramana and will execute normally, once per trace — the CLI prints how many wrapped tool call sites it found before a batch runs, and what that means multiplied across the batch.
  • Python only. No JavaScript or TypeScript SDK.
  • The OpenAI and Anthropic clients are supported. Azure OpenAI and AnthropicBedrock are routed to those adapters and covered by tests; neither has been exercised against live cloud credentials. Raw boto3 is not supported.
  • LangChain is tested. LangGraph, CrewAI and LlamaIndex are not, and are not supported.
  • No SOC 2, no penetration test, no uptime SLA, no on-premise deployment.
  • The evidence public key is not yet published at a stable URL. verify_bundle runs offline and needs no account, but today you still obtain the key from us — which is not the same as independent verification, and is not claimed as such.

Sample evidence bundles

evidence-samples/ holds two signed bundles, a tampered copy of each, and the key that checks them. No account, no network. The key is sample-public-key.txt in that directory — a separate, sample-only key, not the one a production deployment publishes at /.well-known/pramana-evidence-public-key:

console
$ pip install 'pramana-verify>=0.0.6'$ pramana-verify evidence-samples/production-run.json \    --pubkey evidence-samples/sample-public-key.txtOK — 2 event(s), merkle_root=6ec957f1ec1443e56c01bab5440df06cfbdd6bbd67c9e8c35398d02d1a840a3a
$ pramana-verify evidence-samples/production-run.TAMPERED.json \    --pubkey evidence-samples/sample-public-key.txtTAMPERED / INVALID:  - payload 535f17dac0ea...: content does not hash to its reference — this recorded prompt or response was tampered with

evidence-samples/FORMAT.md is the field-by-field specification. Those files are signed with a sample key, not the key that signs real bundles.


Documentation · reliai.in · pramana-sdk · pramana-verify

來源:README.md,提交 4cba9b2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.3最新Sep 29, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分