mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-10-16 06:59:02 +08:00
* feat(mcp): add per-tool enable toggle * style: format migration test * fix(mcp): keep enable and approval updates from overwriting each other Partial policy writes now touch only the supplied columns, and a missing tenant fails closed so a disabled tool cannot slip through. --------- Co-authored-by: myysophia <myysophia@users.noreply.github.com> Co-authored-by: wizardchen <wizardchen@tencent.com>
3 lines
154 B
SQL
3 lines
154 B
SQL
-- Per-tool MCP enable/disable policy. Missing rows are treated as enabled.
|
|
ALTER TABLE mcp_tool_approvals ADD COLUMN enabled BOOLEAN NOT NULL DEFAULT 1;
|