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。
请在仓库或注册中心条目中声明许可证。