
LoopGrid MCP
io.github.loopgridio由 GitHub 账号 loopgridio 发布v0.1.0更新于 Oct 24, 2026
MCP bridge for tamper-evident evidence around consequential AI and agent decisions.
概览
一个本地 stdio MCP 桥接服务,让助手在 LoopGrid 服务中记录并获取 AI 与智能体决策的签名、防篡改证据。
- 可以做什么
- 记录决策,包括拟议操作、模型信息和授权限额,可选附加模型证据并评估已有策略。通过 LoopGrid 审核端点记录批准或拒绝的审核,默认禁用。追加外部工具已执行和已观察到结果的证据,但本身不执行任何操作。将可移植的证据 ZIP 下载到配置的本地目录。请求所连接的 LoopGrid 服务验证决策的签名工作区链。
- 适用场景
- 当你需要对有重大影响的 AI 或智能体决策(例如退款或其他业务操作)保留可审计、防篡改的记录,并希望由助手采集证据、而实际操作仍留在你自己的集成中时使用。它是设计预览版,并非正式生产版本。
- 运行要求
- 需要 Python 3.10+ 和来自 PyPI 的 loopgrid-mcp 包,由 MCP 主机以本地 stdio 进程启动。需要可访问的 LoopGrid v0.8.x 服务,例如监听 8000 端口的公开容器。需要环境变量 LOOPGRID_BASE_URL 和 LOOPGRID_WORKSPACE;仅在启用 LoopGrid 认证时需要 LOOPGRID_SERVICE_KEY。该桥接服务不会自行加载 .env 文件。
安装
在 SourceWeft 中
- 打开 控制台中的 LoopGrid MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
LoopGrid MCP Server — v0.1 design preview
MCP access to the LoopGrid evidence plane for consequential AI and agent decisions.
loopgrid-mcp is a thin Model Context Protocol (MCP) bridge for LoopGrid.
It lets an MCP-compatible AI host record and retrieve signed, tamper-evident decision evidence through six MCP tools while keeping the MCP layer separate from the LoopGrid core runtime.
The bridge communicates with LoopGrid exclusively through its REST API. It does not import LoopGrid internals, access the LoopGrid database directly, change signing logic, alter the evidence schema, or modify the existing LoopGrid SDK contracts.
Public release
Current version:
Available through:
- PyPI:
loopgrid-mcp - GitHub:
github.com/loopgridio/loopgrid-mcp - MCP Registry:
io.github.loopgridio/loopgrid-mcp
The official MCP Registry entry is active and currently points to the PyPI 0.1.0 package using local stdio transport.
Architecture
The v0.1 release uses local stdio transport.
No separate hosted MCP service, Railway deployment, Render deployment, AWS service, or MCP-specific database is required.
MCP tools
The server exposes six tools:
loopgrid.record_decisionloopgrid.record_reviewloopgrid.record_actionloopgrid.record_outcomeloopgrid.get_evidenceloopgrid.verify_evidence
Important safety boundary
LoopGrid MCP is an evidence bridge, not a business-action executor.
loopgrid.record_action does not issue a Stripe refund, modify Salesforce, change ServiceNow, or invoke another external business system. It records evidence supplied by the calling integration that an external action occurred.
Likewise, loopgrid.record_outcome records an outcome reported by the calling integration.
LoopGrid can cryptographically verify the integrity of the captured record. That verification does not independently prove that every external-world claim in the record is true and does not determine legal or regulatory compliance.
Human review receives additional protection. loopgrid.record_review is registered as an MCP tool but is disabled by default. To enable it, an operator must explicitly configure both the review flag and reviewer identity. The model cannot choose the configured reviewer identity.
Raw FULL-mode disclosure payloads are also excluded from MCP evidence export by default.
Requirements
- Python 3.10+
- A reachable LoopGrid v0.8.x service
- For local evaluation, the public LoopGrid GHCR image is sufficient
Normal use of the Python stdio server does not require Node.js.
Node.js is only needed for optional browser-based MCP Inspector tooling.
The project uses the official MCP Python SDK v2 line:
Quick start
1. Start LoopGrid
For local evaluation using Docker:
Leave the LoopGrid container running.
By default, LoopGrid MCP expects the service at:
2. Install LoopGrid MCP from PyPI
Create a Python virtual environment:
Install the published package:
3. Check connectivity
Run:
Expected shape:
The local evaluation configuration does not require a service key when LoopGrid authentication is disabled.
4. Start the MCP server
Run:
Because this is a stdio MCP server, running it directly normally causes it to wait for MCP messages on standard input.
In normal use, an MCP-compatible host starts this command for you.
Generic MCP client configuration
A generic client configuration looks like:
On Windows, some MCP hosts may require the full path to the executable, for example:
See:
for an example.
Install from source
For development or repository validation:
Then verify connectivity:
Development and validation
Unit and protocol tests
Run:
Repository release check
Run:
REST smoke test
Run:
The smoke test creates a synthetic decision, records synthetic action and outcome evidence, verifies the decision, and downloads an evidence ZIP.
It does not call a real external business system.
Real stdio MCP client test
Run:
This launches loopgrid-mcp as a child stdio server using the official MCP Python client and verifies:
A successful run ends with:
This is the recommended automated release-gate test for the MCP protocol path.
Optional MCP Inspector
The browser-based MCP Inspector can be useful for manual exploration, but it is not required to run or validate LoopGrid MCP.
The canonical automated protocol test in this repository remains:
If your installed MCP development tooling supports the Inspector cleanly, you can also try:
Tool behavior
loopgrid.record_decision
Captures a decision through the LoopGrid REST API.
Optional inputs can also append model evidence and evaluate an existing LoopGrid policy.
It never executes proposed_action.
Example:
loopgrid.record_review
Records an approve/reject review through the LoopGrid review endpoint.
This tool is disabled by default.
To enable it deliberately:
When LoopGrid authentication is enabled, the configured service key must also have the appropriate review scope.
loopgrid.record_action
Appends tool_executed evidence to the decision record.
It does not execute the external tool.
Canonical fields such as the tool name cannot be overwritten by free-form details.
loopgrid.record_outcome
Appends outcome_observed evidence.
The calling integration is responsible for obtaining the real downstream outcome.
Canonical fields such as status and verified_against cannot be overwritten by free-form details.
loopgrid.get_evidence
Downloads the portable LoopGrid evidence ZIP to:
The default directory is:
Raw disclosure payloads are blocked from MCP evidence export unless explicitly enabled:
loopgrid.verify_evidence
Asks the connected LoopGrid service to verify the decision's signed workspace chain.
This is service-side verification.
Independent/offline verification of an exported evidence bundle should use the corresponding LoopGrid evidence-verification workflow rather than duplicating that verifier inside the MCP bridge.
Authenticated LoopGrid deployments
For local evaluation with LoopGrid authentication disabled, no service key is required.
When authentication is enabled:
Use the minimum scopes required by the MCP tools you enable.
Do not use an administrative key unless administration is genuinely required.
Configuration
See:
for the complete supported environment-variable configuration.
Common settings include:
The bridge does not automatically load .env.
The MCP host should inject environment variables, or the operator should configure them in the environment that starts the server.
The LoopGrid service URL is operator configuration rather than an MCP tool argument. This prevents a model from redirecting the bridge to an arbitrary LoopGrid host through a tool call.
Privacy and disclosure defaults
LoopGrid supports evidence workflows with different disclosure levels.
The MCP bridge follows conservative defaults:
- human review recording is disabled unless explicitly enabled;
- reviewer identity is operator-configured;
- raw FULL-mode payload export is disabled by default;
- authenticated deployments should use scoped service keys;
- external business actions are never executed by the MCP bridge itself.
Repository boundary
LoopGrid core and LoopGrid MCP intentionally remain separate:
The MCP bridge communicates with the LoopGrid core runtime only over HTTP.
Validation status
LoopGrid MCP 0.1.0 has been validated on Windows against the public LoopGrid 0.8.1-design-partner container.
Validation included:
- clean repository installation;
- Python unit/protocol tests;
- REST connectivity;
- synthetic decision creation;
- action evidence recording;
- outcome evidence recording;
- service-side cryptographic verification;
- portable evidence ZIP export;
- official MCP Python client stdio negotiation;
- discovery of all six MCP tools;
- confirmation that the review tool remains disabled by default.
The official MCP Python client successfully negotiated MCP protocol:
See VALIDATION.md for the detailed release-gate record.
MCP Registry
LoopGrid MCP is published in the official MCP Registry as:
Current Registry version:
Registry metadata:
The Registry entry is publicly discoverable and points to:
The corresponding Python package is published as:
The hidden ownership marker near the top of this README:
is intentionally retained because it is used for MCP Registry package ownership verification.
For future releases:
- update the package version;
- update
server.jsonto the same version; - run the repository validation suite;
- publish the new version to PyPI;
- confirm the package is publicly installable;
- validate
server.jsonwithmcp-publisher; - publish the corresponding version to the MCP Registry.
Release posture
0.1.0 is a design preview, not Production GA.
It is intended to validate a clean MCP integration path for LoopGrid v0.8.x without changing LoopGrid's signing, hash-chain, evidence-bundle, verification, or SDK contracts.
LoopGrid provides signed, tamper-evident evidence and append-only decision history. Verification confirms the integrity of the captured record; it does not determine legal compliance.
License
Apache-2.0.
See LICENSE.
来源:README.md,提交 5489ff3
工具
0版本历史
1- v0.1.0最新Sep 20, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分