Files
llmgw/internal/store/migrations/postgres/0050_mcp_rate.sql
T
Ilker ManapandClaude Opus 5.5 3a4488b41e
CI / test (push) Successful in 5m35s
The company's MCP tools under the guardrails, a rate and a breaker
A tool's answer is read by the caller's policies as the prompt it
becomes, so an instruction planted in a ticket is withheld and personal
data redacted; its arguments are read before they leave. ctl mcp add
--rate bounds each caller's calls a minute to a server (migration 0050),
and five failures in a row take a server out for a minute, its tools
off the list.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-20 23:00:22 +02:00

5 lines
243 B
SQL

-- Ported from the SQLite migration of the same number.
-- How many calls a minute one caller may make to a server's tools; 0 is no
-- limit but the gateway's own.
ALTER TABLE mcp_servers ADD COLUMN rate_per_minute INTEGER NOT NULL DEFAULT 0;