Files
Charis af876fafc0 refactor(studio): migrate more remote MCP tools to contracts (#52226)
Migrates \`list_tables\`, \`list_edge_functions\`, \`list_branches\`,
\`get_advisors\`, and \`query_logs\` to \`RemoteToolContract\`.
Follow-up to #52175.

- Opt-in levels are unchanged: \`schema\` for the first three,
\`schema_and_log\` for the last two.
- \`needsApproval\` is \`false\` for all five.
- They are removed from \`TOOL_CATEGORY_MAP\` and registered in
\`REMOTE_TOOL_CONTRACTS\`.
- \`getMcpTools\` now applies \`needsApproval\` only to object-valued
remote tool entries. A malformed non-object entry now fails validation.
Before, spreading a string produced a junk object that passed.

No change to what the model sees.

Tests: \`lib/ai\` vitest, \`tsc\`, and Prettier pass.
2026-10-23 11:10:53 -04:00
..
…
…