
Marchward
ai.marchward由 marchward.ai 发布v0.2.4更新于 Oct 24, 2026
Runtime authority for AI agents: credential mediation, spend cap, approval gates, audit log.
概览
Marchward 是一个本地治理层,位于 AI 代理的工具调用之前,执行策略决策并写入防篡改审计日志。
- 可以做什么
- Marchward 拦截代理的工具调用(MCP、HTTP 或 SDK),在调用运行前根据用户定义的策略进行评估,返回 ALLOW、ESCALATE 或 BLOCK。它进行凭据中介,使代理仅持有 Marchward 密钥,而真实服务密钥在执行时注入。它还强制执行推理支出上限,并将每个决策追加到可离线验证的哈希链审计日志中。
- 适用场景
- 适用于在生产环境中运行自主代理,需要防止失控支出、阻止不可逆操作在无人值守时运行,或保留每次工具调用的可验证记录的场景。面向使用 LangGraph、LangChain、原始 SDK 或任何 MCP 服务器的团队。
- 运行要求
- 通过 npm(@marchward/mcp-server)或 marchward-proxy CLI 作为本地进程运行。需要 Marchward API 密钥(MARCHWARD_API_KEY)和 Marchward API 基础 URL(MARCHWARD_API_URL)。存在完全本地模式,无需账户或网络调用。
安装
在 SourceWeft 中
- 打开 控制台中的 Marchward,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Marchward · runtime authority for AI agents
Marchward
Govern what your AI agents are allowed to do. Marchward is one open layer that sits in front of an agent's tool calls and enforces four controls before any action runs, then writes a tamper-evident record of every decision. Self-hostable, Apache-2.0, framework-agnostic.
- Credential mediation. The agent holds one Marchward key, never your real GitHub, Stripe, or database credentials. The real secret is injected at execution, and the agent never sees it.
- Inference spend cap. A hard ceiling on agent spend, so a runaway loop can't drain a budget.
- Approval gates. Irreversible actions pause for a human instead of running unattended.
- Tamper-evident audit. Every decision appends to a hash-chained log you can verify offline. Provable, not just logged.
Most tools in this space cover one of these. Marchward brings all four together in one place, open and self-hostable.
Output guardrails check what an agent says (toxicity, PII, topic). Marchward governs what an agent does (spend, delete, act). A check on the agent's output cannot stop an agent that still holds the keys and can make a different call. Marchward governs the action itself.
Built for teams already running agents in production (LangGraph, LangChain, raw SDKs, any MCP server, or one HTTP call from any runtime) who need an agent to be autonomous without being able to drain a budget, take an irreversible action unattended, or act without an audit trail.
Quickstart: govern an agent in 60 seconds (fully local, no account)
marchward-proxy wraps any MCP server as a child process and evaluates every tools/call against your policy before it runs (block, allow, or pause for human approval), entirely on your machine, with your own credentials.
Every tool call your agent makes now passes through policy first, and lands in a local tamper-evident (hash-chained) audit log you can verify offline. No account, no network call to us.
Prefer the SDK? pip install marchward and wrap calls with marchward.execute(). Point it at your own self-hosted setup, or at the managed plane (below).
What's open vs. what's hosted
The open packages in this repo are a fully functional self-host governor. Some operational features need shared state and run on the hosted plane (free tier, no card):
So: self-host this for execution control, credential mediation from your own local store, a local cost cap, and a local audit log; add the free hosted tier for the managed credential vault (rotation, team sharing), approval workflows, retained audit-as-a-service, and cross-agent enforcement. Same engine underneath. The proxy's --remote mode just points at the plane.
How it works
- Your agent makes a tool call (MCP, HTTP, or via the SDK).
- Marchward evaluates it against your policy. Risk is judged by the resolved action: any destructive operation (a
DELETE, a flagged destructivePOST) is gated regardless of what the tool is named, so a custom-named destructive tool cannot slip past. - The decision, ALLOW / ESCALATE / BLOCK, is enforced before the call runs and appended to a hash-chained audit log.
- Credential mediation means your agent holds only a Marchward key. The proxy injects the real service credential (from your own local store when self-hosted, or the managed vault on the hosted plane), so a rogue "different tool call" cannot misuse a credential the agent never held.
Packages
@marchward/engine: the deterministic decision engine + hash-chain audit primitive (zero dependencies).@marchward/proxy: the local governor (MCP + HTTP),--localor--remote.@marchward/sdk(TypeScript) andmarchward(Python, on PyPI): clients.
Project
- Contributing:
CONTRIBUTING.md(DCO sign-off,git commit -s) - Security:
SECURITY.md· Conduct:CODE_OF_CONDUCT.md· Governance:GOVERNANCE.md - Trademark:
TRADEMARK.md. The code is open (Apache-2.0); the name is not. - What's open vs. commercial:
OPEN-VS-COMMERCIAL.md· our licensing commitment (the engine stays open, no relicensing rug-pull). - License: Apache-2.0.
- Hosted free tier: https://app.marchward.ai/signup (500 decisions/mo, no card).
来源:README.md,提交 c34cb0d
工具
0版本历史
1- v0.2.4最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分