validate_action
Check if a proposed action passes all active validation rules. Returns allowed/blocked with rule violations.
action必填contextio.sunaivacore由 sunaivacore.io 發布官方發布者v2.0.4更新於 Oct 27, 2026
MCP enforcement layer that intercepts AI agent actions and blocks rule violations before execution.
規則執行閘道,讓助理在動作執行前依策略規則驗證,並記錄繞過、管理自訂規則與稽核日誌。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。
閱讀 https://sourceweft.com/mcp/io.sunaivacore%2Fgate/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。把它新增到你客戶端的 mcpServers 設定中。
{
"mcpServers": {
"sunaiva-gate-agent-rule-enforcement": {
"type": "http",
"url": "https://mcp.sunaivacore.io/"
}
}
}Check if a proposed action passes all active validation rules. Returns allowed/blocked with rule violations.
action必填contextRecord an intentional rule bypass with justification. Cannot bypass constitutional rules.
reason必填rule_id必填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[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.
enabledisableView recent gate decisions — blocks, warnings, passes, and bypasses.
limitrule_id[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[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 enforcement mode (shadow/advisory/enforce) for a specific rule. Requires API key (Pro+).
mode必填rule_id必填agent_idList all enforcement-mode overrides configured for the authenticated customer. Requires an account (Dev+).
無需輸入參數。
Remove a mode override for a rule, reverting it to its default enforcement mode. Requires API key (Pro+).
rule_id必填Create a custom detection rule in the backend. Requires API key (Pro+).
name必填tierseverity必填description必填detection_pattern必填Update an existing custom rule. Requires API key (Pro+).
id必填nametierseveritydescriptiondetection_patternDelete a custom rule. Requires API key (Pro+).
id必填List all custom rules for the authenticated customer. Requires API key (Pro+).
無需輸入參數。
List available rule preset bundles. Requires API key (Dev+).
無需輸入參數。
Apply a preset bundle, activating all its included rules. Requires API key (Pro+).
preset_id必填已滿足適用檢查項的 75%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。
請在儲存庫或註冊中心條目中宣告授權條款。