
Helio
so.heliov0.15.0更新於 Oct 2, 2026
Open-source governance for MCP agents: useful autonomy without unlimited authority
概覽
Helio 是一個本機 MCP 代理,對 AI 代理的每次工具呼叫執行政策、預算、審批和稽核記錄。
- 功能
- Helio 位於 MCP 用戶端與一個或多個上游 MCP 伺服器之間,在轉送前攔截每次工具呼叫。它套用宣告式 YAML 規則,可允許、拒絕、限速、限制花費或要求人工審批,並可要求前置操作或新鮮證據。它記錄每次呼叫的輸入、政策決定、審批狀態、下游回應和設定雜湊,可在內建儀表板檢視並匯出為 JSON 或 CSV。被阻止的呼叫會傳回結構化回饋,方便代理自我修正。
- 適用情境
- 當代理可存取花錢、修改生產資料或執行不可逆操作的工具,且你希望護欄位於模型上下文之外時使用。適合跨多個框架或 MCP 伺服器執行代理、需要統一政策檔案、預算、審批佇列和稽核記錄的團隊。
- 執行需求
- 需要 Node.js,透過 npx @gethelio/proxy 執行。需要 helio.yaml 設定指向上游 MCP 伺服器 URL。選用:儀表板密鑰(HELIO_DASHBOARD_SECRET)、SDK 邊帶權杖(HELIO_SDK_TOKEN)以及用於靜態憑證的上游請求標頭。僅限桌面,作為本機程序執行。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Helio,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Helio
Open-source governance for MCP agents: useful autonomy without unlimited authority.
Getting Started · Docs · Contributing
Helio is an MCP proxy that sits between your AI agents and the tools they use. Every tool call passes through Helio, which enforces policies, requires prerequisites, checks evidence, routes approvals, caps cumulative spend, and records everything - without changing your agent code or your MCP servers.
The 2026-07-28 MCP revision made the protocol itself stateless: no handshake, no
protocol-level sessions, cross-call state carried as handles the model passes between
tools. That pattern works for application state and fails for governance state,
because a budget key the model can see is a budget key the model can change. Helio
keeps session identity, budgets, and evidence in the proxy, outside the agent's
context, which is why those controls still mean something after the protocol
stopped tracking sessions. See
stateless protocol, stateful governance.
@gethelio/proxy is the only Node package you install. It ships the proxy runtime and bundled dashboard UI assets together.
Why Helio?
Your agent just called an API you didn't expect. It spent money you didn't authorize. It modified a production record you can't easily undo.
Model providers are building governance for their own platforms but your agents run across Claude, ChatGPT, LangChain, CrewAI, and custom frameworks. No single platform governs the full picture. And none of them govern what happens in downstream systems like Stripe, Salesforce, or GitHub.
Helio governs what agents do to the rest of the world across any MCP-compatible agent, any tool, any platform.
A rule in Helio cannot be forgotten and cannot be weakened silently. It is not in the model's context, so a long session cannot evict it and an injection cannot argue it away, and enforcement is in the path rather than in the prompt: a tool call routed through Helio is decided before it is forwarded, whatever the model has been told. Every attempt to reload the policy file, including one that removes a rule, is an audit record, and every record carries the hash of the config in force when it was written, so a change shows against the decisions made under it. The "cannot be weakened silently" claim has one condition, stated under Enforcement grades.
How It Works
Two integration paths:
- Proxy only: Point your MCP client at Helio instead of your MCP server. Zero code changes. Immediate governance.
- Proxy + SDK: Add the thin Python SDK to annotate tool calls with evidence context and action dependencies. Richer governance, under 500 lines of code.
Enforcement grades
Helio governs at the strongest grade each path physically allows, and records it per call:
- Structural (stdio MCP) — Helio owns the child process it spawned, so nothing on the MCP path routes around it; a co-located process that can run the same command line is outside this grade (see the note below).
- Network (HTTP MCP) — structural given you control the upstream's egress.
- Host-enforced (hook adapters via the adapter API, e.g. OpenClaw) — for frameworks that run tools in-process and expose hooks rather than an MCP transport. The framework's hook gate enforces; Helio decides. This is a cooperative, lower grade than the proxy path, and Helio labels it as such rather than overclaiming. Helio's decisions still cannot be evicted from the agent's context or prompt-injected, and any attempt to route around them is visible in the audit trail.
All three grades assume the proxy's config, secret, and audit store are outside the agent's reach. In the default local install they are not: the proxy runs as the same user as the agent. SECURITY.md states the boundary and the deployments that close it. That install is also the condition on "cannot be weakened silently": a same-user agent can restart the proxy without the config pin and can edit or delete the audit file, so the reload record and the hash on every record are durable only while the agent cannot write the audit file, and the event stream and stderr are the channels that leave the box before that. Run the proxy as its own user or in its own container, as the recipes there do, and the condition falls away.
Quick Start (5 minutes)
1. Install
This single package includes the built-in dashboard UI bundle.
Running your agent in a container? npx @gethelio/proxy init --sandbox writes the sidecar layout instead; see Running Helio as a Sidecar.
2. Configure
npx @gethelio/proxy init already created a helio.yaml in your project root. Open it (e.g. nano helio.yaml, or in your editor) and point upstream.url at your existing MCP server. The singular upstream: form stays fully supported; to govern more than one MCP server, declare a named upstreams: list in its place (set exactly one of the two). Tool sets are never merged: each named upstream is served at its own /mcp/<name> door. See the Configuration Reference.
Not sure what the server exposes? npx @gethelio/proxy scan --upstream http://localhost:8080/mcp prints every tool, whether the server marks it destructive or leaves the MCP default, and the arguments a rule could match, before you write a rule and without starting the proxy.
Heads up — Helio starts in audit-only mode.
initscaffolds thepoliciessection commented out, so out of the box Helio runs withdefault: allowand zero rules: it records every tool call to the audit trail but blocks nothing. Uncomment and editpolicies(or paste your own rules) to start enforcing. See the Policy Guide for rule syntax.
The block below is an illustrative target — not the file init writes — showing policies, budgets, audit, and a dashboard secret:
Omitted fields like listen.host, dashboard.host, and audit.path fall back to safe defaults (127.0.0.1 for both hosts — loopback only — and ./helio-audit.db). The Configuration Reference is the authoritative list of every field, its default, and the canonical section order.
If your upstream requires a static credential (for example Authorization: Bearer … on a hosted MCP server), set upstream.headers — values support ${VAR} interpolation so secrets stay out of the file.
No MCP server to test against? Helio ships a zero-dependency echo server you can run in one command — see the Getting Started guide.
About dashboard.api_secret:
-
If you ran
npx @gethelio/proxy init, yourhelio.yamlalready contains the SHA-256 digest of a generated secret, andinitprinted the secret itself once. Keep the printed value; it is what you log in with. Skip this step. -
If you authored
helio.yamlby hand using the${HELIO_DASHBOARD_SECRET}placeholder shown above, set the variable beforestart:
3. Start Helio
4. Point your agent at Helio
No agent handy? You don't need one to see Helio work. Point the official MCP Inspector at http://localhost:3000/mcp (run npx @modelcontextprotocol/inspector, transport: Streamable HTTP — Inspector connects through its own local backend, which sends no Origin header; a browser-sent Origin is rejected by design), or send a call straight through the proxy from the terminal:
Either way the call appears in the dashboard with its policy decision. (get_weather is one of the demo tools in Helio's echo server.)
5. Open the dashboard
If prompted, log in with the dashboard secret that init printed (the file holds only its digest).
That's it. Every tool call now passes through Helio with a full audit trail, rate limits, and spend controls.
Want human-in-the-loop approvals for write operations? See docs/approvals.md for the full Slack and dashboard approval flow, or copy examples/slack-approvals/ as a starting point.
Features
Policy Engine
Declarative YAML rules that match on tool name, annotations, input parameters, environment, and cumulative state. Irreversible actions are flagged, and dry-run mode runs the full pipeline without forwarding to the MCP server. Policies hot-reload without restart.
Multi-Upstream Governance
One proxy governs several MCP servers. A named upstreams: list takes the place of the singular upstream: (a config carries one form or the other, never both; the singular form stays supported), and each named upstream is served at its own /mcp/<name> and /sse/<name> door with no merged tool set.
Governance is unified across the doors: one policy file, in which a rule can scope itself with match.upstreams, one budget engine, one approval queue, one audit trail, and one dashboard. See upstreams in the configuration reference, upstreams in the policy guide, and the multi-upstream example.
Cross-Tool Spend Budgets
One budget across tools and servers: one depleting pot aggregates spend across every tool that feeds it, on whichever MCP server the tool sits behind and whichever argument field carries the amount (Stripe and PayPal into one cap). Deterministic at the MCP gate, persistent across restarts via a durable spend ledger, with break-glass approvals for overages and a live dashboard view.
Budgets govern tools that expose what they are spending in an argument field. Watch the full flow — live depletion, breach, break-glass approval, the approved overage landing in the ledger — in the Docker quickstart demo or the runnable budgets example.
Evidence Grounding
Require fresh application-provided evidence. The optional SDK posts an evidence key for the session; the proxy checks that the key is on the policy allowlist, present, and not expired (the caller sets a TTL per entry; the SDK default is 300 seconds). Helio verifies the presence and freshness of the evidence signal, not what it contains, and the SDK token lives in the agent's process, so treat an evidence gate as a guard against a step skipped by mistake, not against an agent that intends to skip it. See SECURITY.md.
The SDK talks to the proxy over the sideband API (default 127.0.0.1:3200; bind host is configurable via sdk.host). When the SDK sideband is enabled (sdk.enabled: true, off by default), the proxy generates a fresh 32-byte hex token on every helio start and prints it to stderr:
Pass the same value to the SDK process via HELIO_SDK_TOKEN and the SDK automatically attaches Authorization: Bearer <token> to every sideband call. The sideband also rejects any request carrying a non-null Origin header, so a malicious local HTML file cannot talk to it through a browser. Operators who need a stable token across restarts can set HELIO_SDK_TOKEN explicitly in the proxy's environment — the proxy respects a pre-set value instead of regenerating one, and does not echo it to stderr.
Self-Repair Feedback
When Helio blocks an action, it returns structured feedback explaining what failed and what the agent should do next. The agents can then self-correct and retry.
Action Dependency Chains
Require a successful prerequisite action. No refund unless orders.lookup already succeeded this session. The proxy observes the call itself: by default a dependency is satisfied only by a routed tool call that returned an upstream result rather than an error. Set requires_success: false to count any attempt.
Approval Workflows
Escalate only what needs you, and show the approver the arguments. Route a sensitive call to Slack, a webhook, or the Helio dashboard; the ticket carries the tool, the upstream, the rule that fired, and the call's arguments, and the call goes nowhere until a human decides. Configurable timeout and escalation, plus a dashboard-only break-glass override (REST API and dashboard UI; not exposed as a Slack button).
Rate & Spend Limits
Rate limits per tool and per session. Per-rule spend limits that block a matched tool at its own cap - for a cumulative cap that spans tools, see Cross-Tool Spend Budgets.
Audit Trail
Every tool call recorded: timestamp, agent identity, tool name, inputs, policy decision, evidence chain, approval status, downstream response, latency, and the hash of the config in force when the record was written. Searchable dashboard. Export to JSON or CSV.
How Helio Compares
¹ Per-rule rate and spend limits, plus named cross-tool budgets: persistent depleting pots with break-glass approvals for overages.
Works With
Helio works with any MCP-compatible agent or framework:
- Claude (Anthropic)
- ChatGPT (OpenAI)
- LangChain / LangGraph
- CrewAI
- AutoGen
- Custom agents using any MCP client SDK
Documentation
The full docs live in the monorepo and are not bundled into this package tarball.
- Getting Started: Install and configure in 5 minutes
- Configuration Reference: Every YAML option explained
- Policy Guide: How to write rules with examples
- Scanning an upstream:
helio scanprints an MCP server's real tool surface, with hint provenance, coverage and argument candidates, before the proxy runs - Approval Workflows: Slack, webhook, and dashboard approvals
- Audit Trail: What's recorded, how to search, how to export
- Running Helio as a Sidecar: Deploy next to a coding agent or dev container with the upstream and the config out of its reach and Helio off its network
- Running Helio as its own user: The separate-user tier on Ubuntu 24.04, run end to end
Examples
Ready-made configurations for common patterns:
- Basic: Deny destructive operations, allow everything else
- Slack Approvals: Route destructive actions to Slack
- Spend Limits: Govern payment tool usage
- Budgets: A cross-tool budget across Stripe and PayPal tools with break-glass overage approvals, paired with a category cap that only charges calls declaring their spend category
- Multi-Upstream: Two named upstreams behind one proxy, with a door-scoped rate limit and budget
Contributing
We welcome contributions. See CONTRIBUTING.md for setup instructions, coding standards, and PR process.
Good first issues are labeled good-first-issue.
Community
- GitHub Issues: Bug reports and feature requests
- Twitter/X: Updates and announcements
License
Apache 2.0 - see LICENSE.
來源:packages/proxy/README.md,提交 961b2e4
工具
0版本歷史
1- v0.15.0最新Oct 2, 2026
