Logo Helio MCP Governance Proxy

Helio MCP Governance Proxy

Tổ chức
gethelio

Governance proxy for MCP: block or hold AI agent tool calls on their arguments, route approvals with the arguments shown, enforce rules the model cannot argue with, require prerequisites, cap cumulative spend across tools and servers, and audit every call. No changes to agent code or MCP servers.

Nhà phát hànhgethelio
Kho mãhelio
Ngôn ngữTypeScript
Bản fork
7
Sao
13
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Giấy phépApache-2.0
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    Helio MCP Governance Proxy cung cấp các khả năng MCP mà ứng dụng khách và tác nhân AI tương thích có thể sử dụng.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Cấu hình sẵn để sao chép

    Dùng các đoạn cấu hình cài đặt mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Chỉ số quan tâm đến mã nguồn mở

    13 sao và 7 bản fork từ kho mã được liên kết.


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.

bash
npx @gethelio/proxy init

@gethelio/proxy is the only Node package you install. It ships the proxy runtime and bundled dashboard UI assets together.

ALLOW      read_customer
APPROVE    refund > £50
DENY       production.delete
BUDGET     £500/day across matching paid tools
REQUIRE    order.lookup succeeded before refund

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:

  1. Proxy only: Point your MCP client at Helio instead of your MCP server. Zero code changes. Immediate governance.
  2. 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

bash
npx @gethelio/proxy init

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.

Heads up — Helio starts in audit-only mode. init scaffolds the policies section commented out, so out of the box Helio runs with default: allow and zero rules: it records every tool call to the audit trail but blocks nothing. Uncomment and edit policies (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:

yaml
version: '1'

upstream:
  url: 'http://localhost:8080/mcp' # Your existing MCP server
  transport: streamable-http # streamable-http (default), sse, or stdio

listen:
  port: 3000 # Helio listens here

session:
  identity: # Ordered identity sources; first match wins
    - source: header
      name: x-helio-session-id # Agent harnesses set this once per run
    - source: legacy_header # Verbatim Mcp-Session-Id (deprecation window)
  on_unresolved: deny # deny | anonymous

policies:
  default: allow

  # These rules match on tool-name globs (deny / rate-limit / spend-limit):
  rules:
    # Block destructive operations
    - match:
        tool: 'delete_*'
      action: deny
      feedback:
        message: 'Destructive operations are disabled'

    # Rate limit expensive API calls
    - match:
        tool: 'search_*'
      action: rate_limit
      limits:
        max_calls: 100
        window: 1h
        key: tool

    # Spend limit on payment tools
    - match:
        tool: 'create_payment'
      action: spend_limit
      limits:
        max_spend:
          field: '$.amount'
          limit: 5000
          currency: 'GBP'
          window: 24h

budgets:
  # One depleting pot shared by every tool that spends.
  - name: agent-payments
    limit: 50
    currency: USD
    window: session
    key: session
    on_exceed: deny # or require_approval for a break-glass ticket
    contributors:
      - match:
          tool: 'stripe_*'
        field: '$.amount'
      - match:
          tool: 'paypal_*'
        field: '$.total'

audit:
  storage: sqlite
  retention: 90d
  include_responses: true

dashboard:
  enabled: true
  port: 3100
  api_secret: '${HELIO_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, your helio.yaml already contains the SHA-256 digest of a generated secret, and init printed the secret itself once. Keep the printed value; it is what you log in with. Skip this step.

  • If you authored helio.yaml by hand using the ${HELIO_DASHBOARD_SECRET} placeholder shown above, set the variable before start:

    bash
    export HELIO_DASHBOARD_SECRET="$(openssl rand -hex 32)"

3. Start Helio

bash
npx @gethelio/proxy start

4. Point your agent at Helio

json
{
  "mcpServers": {
    "my-tools": {
      "url": "http://localhost:3000/mcp"
    }
  }
}

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:

bash
curl -s -X POST http://localhost:3000/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_weather","arguments":{"city":"London"}}}'

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

http://localhost:3100

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.

yaml
policies:
  rules:
    - match:
        tool: 'create_payment'
        input:
          '$.amount': { gt: 1000 }
      action: require_approval

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.

yaml
upstreams:
  - name: files
    url: 'http://localhost:8081/mcp'
  - name: payments
    url: 'http://localhost:8082/mcp'

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.

yaml
budgets:
  - name: daily-cap
    limit: 50
    currency: USD
    window: 24h
    on_exceed: require_approval # a breach becomes a human decision
    contributors:
      - match:
          tool: 'stripe_*'
        field: '$.amount'
      - match:
          tool: 'paypal_*'
        field: '$.total'

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.

yaml
policies:
  rules:
    - match:
        tool: 'process_refund'
      action: allow
      evidence:
        requires: ['orders.lookup']
python
# Optional SDK enrichment
from helio import HelioContext

# Mark a tool output as evidence
with HelioContext() as ctx:
    result = orders.lookup(order_id)
    ctx.mark_evidence("orders.lookup", "order_data", result)

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:

SDK sideband listening on http://127.0.0.1:3200
SDK token (generated per-boot HELIO_SDK_TOKEN; pass as HELIO_SDK_TOKEN env var to your SDK clients):
  3f9c2b...d8a1

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.

json
{
  "blocked": true,
  "reason": "evidence_missing",
  "missing_evidence": ["orders.lookup"],
  "suggestion": "Call orders.lookup with the order ID before retrying"
}

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.

yaml
policies:
  rules:
    - match:
        tool: 'process_refund'
      action: allow
      requires: ['orders.lookup', 'customer.verify']

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

HelioObotCerbosBuilt-in (Anthropic / OpenAI)Framework (LangChain / CrewAI)
What it governsPer-call actions with cross-call stateWhich tools/MCPs are reachableApp-level authorization decisionsAgent permissions inside one platformAgent behavior inside one framework
ArchitectureOut-of-process MCP proxyOut-of-process MCP gatewaySidecar / libraryIn-platformIn-framework
Open source✅ Apache 2.0✅ Apache 2.0✅ Apache 2.0❌Varies
Time to value5 minutesSetup-dependentHoursBuilt-inBuilt-in
No agent code changes✅✅❌✅ (within platform)❌
Governs agents you didn't build✅ Any MCP agent✅ Any MCP agent✅ (any app)❌ One platform only❌ One framework only
Evidence grounding✅ Cumulative across calls❌❌❌Limited
Self-repair feedback✅ Structured retry hints❌❌❌Limited
Stateful spend / rate limits✅ Cross-tool budgets + per-rule limits¹Basic❌❌Limited
Approval workflows✅ Slack, webhook, dashboard✅❌LimitedLimited
Audit trail (incl. downstream responses)✅ Captures upstream MCP responsesDecision logsDecision logsPlatform telemetryFramework logs

¹ 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

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

License

Apache 2.0 - see LICENSE.

Dùng MCP Helio MCP Governance Proxy với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối Helio MCP Governance Proxy, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Cài trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Cài trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Giữ tiến trình chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Giữ tiến trình trong cửa sổ Terminal chạy trong khi dùng các công cụ MCP.
3

Thêm Helio MCP Governance Proxy làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của Helio MCP Governance Proxy.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "helio": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của Helio MCP Governance Proxy, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của Helio MCP Governance Proxy.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện TypingMind dùng các công cụ MCP đã bật với một mô hình AI được chọn
Bạn có thể dùng Helio MCP Governance Proxy giúp tôi làm việc này không?
Helio MCP Governance Proxy
Được. Tôi đã đọc.
Đây là kết quả tôi tìm được bằng Helio MCP Governance Proxy.

Câu hỏi thường gặp

Máy chủ MCP Helio MCP Governance Proxy dùng để làm gì?

Helio MCP Governance Proxy là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP Helio MCP Governance Proxy với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng Helio MCP Governance Proxy với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP Helio MCP Governance Proxy với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối Helio MCP Governance Proxy, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP Helio MCP Governance Proxy với TypingMind?

Helio MCP Governance Proxy hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP Helio MCP Governance Proxy cung cấp những công cụ nào trong TypingMind?

Helio MCP Governance Proxy cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP Helio MCP Governance Proxy không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu Helio MCP Governance Proxy yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇