
GRAFOMEM CGR Capture
com.grafomem由 grafomem.com 發布v0.1.0更新於 Oct 24, 2026
Record agent judgments and their real outcomes on GRAFOMEM Cloud. Capture now, score later.
發布方自己的服務:GRAFOMEM CGR Read
概覽
讓編碼代理把自身的判斷及其後續真實結果記錄到 GRAFOMEM Cloud 租戶,形成只追加、可歸屬的紀錄。
- 可以做什麼
- 記錄判斷:為某個工作項目登錄 certify 或 reject 決定,附上角色代號、領域、可驗證性標籤與選填原因。
- 記錄結果:以同一個工作項目 id 附加結果標籤,事後為判斷結案。
- 以自選的工作項目 id(例如 PR 編號、任務 id、執行 id)把判斷與結果串接起來。
- 可選用隨套件提供的參考驗證器檢核 cgr.cosign.v1 雙方共簽信封,且必須明確指定受信任簽發者。
- 適用情境
- 適合希望把代理做出的判斷(部署是否安全、掃描是否乾淨、審查發現是否屬實)在當下留存、待事實明朗後再計分的情境。它用來長期追蹤代理判斷品質,不會在工作階段中攔阻、放行或計分。
- 執行需求
- 需要 GRAFOMEM Cloud 帳號(說明免費方案已足夠)以及連線 GRAFOMEM Cloud API 的網路。透過 uvx 從 PyPI 套件 grafomem-cgr 在本機執行。必須設定 GRAFOMEM_CGR_TENANT_KEY(租戶 API 金鑰,需 decisions:read)與 GRAFOMEM_CGR_TENANT,並提供 GRAFOMEM_CGR_ROLE_KEYS_JSON 或 GRAFOMEM_CGR_ROLE_KEYS 其中之一,將角色代號對應到 Ed25519 公鑰。選用:GRAFOMEM_CGR_FORBIDDEN_TENANTS、GRAFOMEM_API。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GRAFOMEM CGR Capture,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
grafomem-cgr
An MCP server that lets a coding agent record its own judgments and how they turned out, against your GRAFOMEM Cloud tenant.
The model is capture now, score later. Every time your agent makes a call it could be
wrong about — "this deploy is safe", "this scan is clean", "this review finding is real" —
it records the judgment. Later, when reality settles, it records the outcome. The two are
joined by a work_item_id you choose. What accumulates is an append-only, attributable
record of judgments and their results.
This package is the capture half only. It writes to your tenant; it does not compute, serve, or display scores.
cgr.cosign.v1 verifier (optional extra)
Beside the capture client, this package also ships a reference verifier for the
cgr.cosign.v1 two-party co-signature envelope — grafomem_cgr.cosign_verify.verify(record, registry, ledger, trusted_issuers), implementing docs/cgr/cgr-cosign-v1-spec.md §8 (amended
by decisions 0010 and 0011). trusted_issuers is required (§8.2a issuer pinning): a
collection of issuer key ids with no default and no trust-everything path — omitting it or
passing an empty set rejects, rather than trusting the record's self-declared issuer. It is the
second, independent reference implementation (the first is @gns-foundation/cgr-verify,
JS); both pass the same 28-vector conformance corpus at conformance/cgr-cosign-v1/ with zero
verdict disagreements. Install its deps with the extra:
pip install grafomem-cgr[verify] # rfc8785 + cryptography
Capture does not depend on it; the extra is verifier-only.
What it is not
- It does not score anything at capture time, and it does not read scores back into your session.
- It does not make your agent safer or gate anything. Nothing is blocked, approved, or prevented.
- It is not a compliance, audit, or security product.
- Scoring on GRAFOMEM Cloud is single-dimension today: all judgment/certify decisions
score under one dimension regardless of
domain. Thedomainyou pass is stored durably per decision (see below), so it can be attributed later — but it is not scored separately yet.
Requirements
A GRAFOMEM Cloud account. The free tier is sufficient — expected volume is a handful of decisions per day. Note that governed decisions meter as real usage on your plan; the server prints your current usage on startup so this is never a surprise.
Install & configure
One command, plus environment variables — no repo checkout, no launcher script.
Claude Code:
claude mcp add grafomem-cgr --scope user \
--env GRAFOMEM_CGR_TENANT_KEY=sk_your_api_key \
--env GRAFOMEM_CGR_TENANT=your_tenant_id \
--env GRAFOMEM_CGR_ROLE_KEYS_JSON='{"cc-builder@acme":"<64-hex public key>"}' \
-- uvx grafomem-cgr
Or any MCP client that reads a JSON config:
{
"mcpServers": {
"grafomem-cgr": {
"command": "uvx",
"args": ["grafomem-cgr"],
"env": {
"GRAFOMEM_CGR_TENANT_KEY": "sk_your_api_key",
"GRAFOMEM_CGR_TENANT": "your_tenant_id",
"GRAFOMEM_CGR_ROLE_KEYS_JSON": "{\"cc-builder@acme\":\"<64-hex public key>\"}"
}
}
}
}
Environment
| Variable | Required | Meaning |
|---|---|---|
GRAFOMEM_CGR_TENANT_KEY | yes | Your tenant's X-API-Key. Needs decisions:read for the durability guard. |
GRAFOMEM_CGR_TENANT | yes | The tenant id you expect that key to resolve to. If the key resolves anywhere else, every write is refused. |
GRAFOMEM_CGR_ROLE_KEYS_JSON | one of | Role handles → public agent_key, inline as JSON. |
GRAFOMEM_CGR_ROLE_KEYS | these two | Same mapping, as a path to a JSON file. |
GRAFOMEM_CGR_FORBIDDEN_TENANTS | no | Comma-separated tenant ids to always refuse, even if pinned by mistake. Put your production tenant here. |
GRAFOMEM_API | no | Base URL. Defaults to https://api.grafomem.com. |
Role keys
A role handle (cc-builder@acme) is the identity a judgment is attributed to. Its
agent_key is a stable Ed25519 public key, 64 hex characters — the subject the record
binds to. Generate one per role:
openssl genpkey -algorithm Ed25519 -out cc-builder.pem
openssl pkey -in cc-builder.pem -pubout -outform DER | tail -c 32 | xxd -p -c 64
Keep the private half. This version does not use it — it binds to the public key only — but per-decision proof-of-possession is planned hardening, and holding the private key is what will let you prove the identity is yours.
Tools
cgr_record_decision — record a judgment.
| arg | |
|---|---|
work_item_id | stable join key you choose (PR number, task id, run id) |
agent_handle | one of your configured role handles |
domain | deploy-verification | security-scan | adversarial-review |
decision | certify | reject |
verifiability_tag | judgment (default) | rule |
reason_code, reason_text | optional |
agent_confidence | optional, accepted but not yet persisted — see below |
agent_confidence is accepted by the tool schema for forward compatibility but is not
currently written to the decision record. Don't rely on it being stored.
Only judgment + certify moves a score. A rule decision is deterministic and carries
no reputational weight — tag honestly.
cgr_record_outcome — record how it turned out.
| arg | |
|---|---|
work_item_id | the same join key used at decision time |
result | a result label, e.g. deploy_succeeded, ci_failed, vuln_found, review_confirmed |
source | optional provenance string |
An unrecognised result is a deliberate no-op. The decision stays pending rather than
being resolved on a guess — falsely resolving a decision corrupts the record permanently.
Mapped labels are: deploy_succeeded, deploy_healthy, ci_passed, migration_applied,
merge_landed, pr_merged, scan_clean, no_vuln_confirmed, review_confirmed,
finding_correct, bug_confirmed (success); deploy_failed, deploy_rolled_back,
migration_failed, ci_failed, merge_reverted, vuln_found, secret_found,
review_refuted, finding_wrong, bug_not_real (failure).
Safety properties
- Tenant pinning. You declare the tenant up front. The pin is enforced at startup and re-checked against the tenant the API actually resolved on every decision response — so a rotated or mistaken key cannot quietly write somewhere else.
- Denylist.
GRAFOMEM_CGR_FORBIDDEN_TENANTSrefuses named tenants outright. - Key custody. The caller picks a role handle; the server injects that role's key. A tool call can never supply an arbitrary key or target another tenant.
- Fail-open. If the server is misconfigured it exits non-zero and simply doesn't load. Your session continues unblocked, with no tools registered. A refused tool call returns an error as normal tool output rather than crashing the MCP server.
- Domain durability.
domainis sent as a dedicated field and stored server-side, per decision, in the never-encrypted CGR-readable decisionparametersascgr_domain— in the signed decision record, not in a client-side log.selftestincludes a durability guard that re-reads the decision it just wrote and aborts loudly ifcgr_domaindid not round-trip, rather than silently recording a domainless decision.
CLI
grafomem-cgr # run the stdio MCP server (the default)
grafomem-cgr setup # register your role identities on the tenant (idempotent)
grafomem-cgr selftest --handle cc-builder@acme --domain deploy-verification
selftest closes the loop once — decision → durability guard → outcome → score read — and
prints the movement and the meter. Run it before wiring the server into a session.
Links
MIT licensed.
來源:packages/grafomem-cgr/README.md,提交 7c667c8
工具
0版本歷史
1- v0.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Grafomem 整合

GRAFOMEM CGR Read
com.grafomem官方發布者
遠端 MCP 伺服器,讓助理讀取由 Foundation 簽章、可離線驗證的 CGR 代理信譽證明,無需安裝。

Mcp Perception
com.geiant
一個遠端地理空間 AI 伺服器,讓助理取得 Sentinel-2 衛星圖磚、執行洪水分類、查詢天氣,並檢查代理信任與稽核鏈。

Mcp Agentcore
com.geiant
遠端 AI 治理伺服器,讓助理驗證代理程式管轄範圍、檢查人類到代理程式的委派鏈,並產生歐盟 AI 法案稽核證據。