Sunaiva Gate — Agent Rule Enforcement

io.sunaivacore由 sunaivacore.io 發布官方發布者v2.0.4更新於 Oct 27, 2026

MCP enforcement layer that intercepts AI agent actions and blocks rule violations before execution.

已驗證Streamable HTTP可網頁執行開發者工具安全與監控

概覽

AI 產生的概覽

規則執行閘道,讓助理在動作執行前依策略規則驗證,並記錄繞過、管理自訂規則與稽核日誌。

可以做什麼
  • 驗證擬執行的動作,回傳允許或阻擋及違規規則
  • 記錄附理由的有意規則繞過
  • 檢視最近的閘道決策稽核日誌
  • 列出生效規則與可用預設組合,並套用預設
  • 建立、更新、刪除和列出自訂偵測規則
  • 設定、列出和重設單一規則的執行模式(shadow、advisory、enforce)
適用情境
適合需要在代理動作執行前設置策略檢查點的情境,或團隊希望共用並稽核被阻擋的動作、繞過記錄與自訂偵測規則時使用。
執行需求
可作為遠端端點使用,也可透過 npx 執行 npm 套件在本機執行。免費層不需金鑰;Pro 功能需要 SUNAIVA_GATE_API_KEY 密鑰。選用變數:SUNAIVA_GATE_DRY_RUN 與 DISABLE_SUNAIVA_GATE。
安裝前請注意
將 DISABLE_SUNAIVA_GATE 設為 1 會無條件放行所有動作,等於關閉執行。部分工具標示為規劃中,在遠端端點會回傳 NOT_IMPLEMENTED。規則、預設與模式相關工具會寫入後端狀態,且需要 Pro API 金鑰。規則清單的 category 與 preset 篩選參數會被接受但不會生效。

安裝

在 SourceWeft 中

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

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.sunaivacore%2Fgate/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "sunaiva-gate-agent-rule-enforcement": {
      "type": "http",
      "url": "https://mcp.sunaivacore.io/"
    }
  }
}

工具

16

validate_action

Check if a proposed action passes all active validation rules. Returns allowed/blocked with rule violations.

輸入參數action必填context

log_bypass

Record an intentional rule bypass with justification. Cannot bypass constitutional rules.

輸入參數reason必填rule_id必填

get_rules

List active validation rules — the customer's TRUE enforced set (constitutional + recommended-default metadata on dev tier, all 69 premium rules on pro+). `category`/`preset` filter args are accepted but not applied server-side.

輸入參數presetcategory

update_rules

[Planned — not yet implemented on the remote endpoint, returns NOT_IMPLEMENTED] Enable/disable is not backed by any route in this API; use set_rule_mode (shadow/advisory/enforce) instead, or the local `npx @sunaiva/gate` package.

輸入參數enabledisable

get_audit_log

View recent gate decisions — blocks, warnings, passes, and bypasses.

輸入參數limitrule_id

ship_confidence_check

[Planned — not yet implemented on the remote endpoint, returns NOT_IMPLEMENTED] Ship Confidence Gate (Rule 42) dual-tier authorization is not yet built in this backend.

輸入參數labelartifact_id必填command_preview

audit_verify

[Planned — not yet implemented on the remote endpoint, returns NOT_IMPLEMENTED] Forward-linked hash-chain / ed25519 audit-log verification is not yet built in this backend.

無需輸入參數。

set_rule_mode

Set enforcement mode (shadow/advisory/enforce) for a specific rule. Requires API key (Pro+).

輸入參數mode必填rule_id必填agent_id

get_rule_modes

List all enforcement-mode overrides configured for the authenticated customer. Requires an account (Dev+).

無需輸入參數。

reset_rule_mode

Remove a mode override for a rule, reverting it to its default enforcement mode. Requires API key (Pro+).

輸入參數rule_id必填

add_custom_rule

Create a custom detection rule in the backend. Requires API key (Pro+).

輸入參數name必填tierseverity必填description必填detection_pattern必填

update_custom_rule

Update an existing custom rule. Requires API key (Pro+).

輸入參數id必填nametierseveritydescriptiondetection_pattern

delete_custom_rule

Delete a custom rule. Requires API key (Pro+).

輸入參數id必填

list_custom_rules

List all custom rules for the authenticated customer. Requires API key (Pro+).

無需輸入參數。

list_presets

List available rule preset bundles. Requires API key (Dev+).

無需輸入參數。

apply_preset

Apply a preset bundle, activating all its included rules. Requires API key (Pro+).

輸入參數preset_id必填

版本歷史

1
  1. v2.0.4最新Sep 16, 2026

評分

已滿足適用檢查項的 75%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。