Marchward

ai.marchward由 marchward.ai 發布v0.2.4更新於 Oct 24, 2026

Runtime authority for AI agents: credential mediation, spend cap, approval gates, audit log.

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

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)。存在完全本機模式,無需帳戶或網路呼叫。
安裝前請注意
此伺服器需要密鑰 API 金鑰(MARCHWARD_API_KEY)和 API 基礎 URL。它可以封鎖、升級或允許寫入、刪除或花錢的操作,因此應仔細審查原則規則。憑證中介在執行時注入真實服務密鑰;請確保本機密鑰儲存安全。託管平面會保留稽核資料並管理憑證。

安裝

在 SourceWeft 中

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

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.

bash
# Write a policy (escalate anything destructive, allow the rest)cat > policy.json <<'EOF'{ "rules": [  { "match": { "toolPattern": "*delete*" }, "decision": "ESCALATE" },  { "match": { "toolPattern": "*" },        "decision": "ALLOW"   }]}EOF
# Put Marchward in front of your agent's MCP server, local mode, no APInpx -p @marchward/proxy marchward-proxy \  --command "node my-mcp-server.js" \  --policy-file ./policy.json \  --local

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):

Open (self-host, this repo)Hosted plane (Marchward Cloud)
Execution control: allow / block / escalate tool calls by policyyesyes
Local governor (MCP/HTTP intercept, your own credentials)yesyes
Tamper-evident audit: hash-chain primitive + offline verifyyesretained, queryable, monitored
Approval-gate decisionyes+ managed workflow (notify, approve, resume)
Inference cost caplocal accountingenforced (rolling-window spend)
Credential mediation (agent holds one key, real cred injected, the agent never sees it)yes, from your own local secret storeyes, managed vault
Managed credential vault, multi-tenancy, SSO/RBACnoyes

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

  1. Your agent makes a tool call (MCP, HTTP, or via the SDK).
  2. Marchward evaluates it against your policy. Risk is judged by the resolved action: any destructive operation (a DELETE, a flagged destructive POST) is gated regardless of what the tool is named, so a custom-named destructive tool cannot slip past.
  3. The decision, ALLOW / ESCALATE / BLOCK, is enforced before the call runs and appended to a hash-chained audit log.
  4. 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), --local or --remote.
  • @marchward/sdk (TypeScript) and marchward (Python, on PyPI): clients.

Project

來源:README.md,提交 c34cb0d

工具

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

版本歷史

1
  1. v0.2.4最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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