Skip to content
Last updated December 3, 2026

PromptGate 0.12 — changelog

Archived from CHANGELOG.md, which keeps the unreleased changes and, until the next release, the latest one.

Fewer tokens for agents with many tools, and OAuth connections that survive two processes. With mcp.tool_search, agents list two tools — find and call — instead of hundreds of definitions in every prompt, and every check of a direct call still applies. The gateway and a CLI command no longer renew one OAuth connection at the same time, which made providers that rotate refresh tokens end it. On the request path v0.12.1 measures like v0.12.0 (release run).

  • Tool search: with mcp.tool_search: on (or auto, above 40 tools) agents list two tools instead of every tool — promptgate__find_tools finds the tools the key may use by name and description, promptgate__call_tool calls one through every check a direct call meets (allowlists, access levels, approvals, guardrails, limits). Ten servers of twenty tools: 27,961 bytes of definitions in every prompt become 813 (tool search).
  • OAuth: the gateway and a CLI command (oauth refresh, apis call, mcp call) could renew the same connection at once and use one refresh token twice — which providers that rotate refresh tokens treat as theft, revoking the connection. A renewal now takes a lease in the request log (schema v20); a process that finds one waits for the other’s token, and a refused refresh token whose connection another process renewed meanwhile takes that token instead of asking for a reconnect. A renewed token that can’t be stored is tried again (tokens over time).

What an agent may do, not only what it may reach. A key’s access level — read, write or full — per MCP server, tool and API keeps an agent that should only look things up from merging, deleting or sending, whatever a poisoned page tells it; the tools above its level aren’t even listed. Calls that delete (or write) can wait for a person’s yes, asked in the agent’s own client through MCP elicitation, in the stateless 2026-07-28 protocol and in sessions alike. A new pgfuzz stage checks both from the outside on every build. On the request path v0.12 measures like v0.11.1; checking an access level costs nothing measurable (release run).

  • Agent permissions: a key’s access says what it may do — read, write or full (delete too, the default) — per MCP server (mcp:github), single tool (mcp:github/merge_pull_request), API (api:crm) and for everything else ("*"). MCP tools are classified from their annotations (readOnlyHint, destructiveHint; none counts as delete), API calls from their method; classify on a server or an API overrides both — a search sent as POST reads. Tools above the key’s level are left out of tools/list; a call anyway is refused (MCP error -32028, API 403) before it reaches the server, logged as access: blocked delete. In the config, promptgate keys create --access, the web UI’s key form and key_create (agent permissions).
  • Approvals: a key’s approve: delete (or write) holds such MCP tool calls until a person says yes. PromptGate asks through the agent’s own client — a 2026-07-28 input_required result with an elicitation/create form — and passes the call on only after accept; a decline is a tool error and never reaches the server. The question is sealed to the key, the tool and its arguments, opens once and expires after 10 minutes; a server’s own round trips after a yes keep it. Answers go into the audit trail (tool.approved, tool.declined). Agents in a 2025-06-18 or 2025-11-25 session are asked on the call’s event stream instead, and PromptGate waits up to 10 minutes for the answer. Clients without elicitation get such calls refused (-32021) (approvals).
  • Quality gate: mcp-permissions — a read-only key lists and reaches only tools that read (a tool whose annotations claim read-only is classified by the config), and calls held for approval reach the server only after a yes: not unasked, not with a tampered state, not twice for one yes, not for other arguments, not after a decline, in both protocol eras; 35 stages (quality gate).
Was this page helpful?