v2.39.2
Agent ergonomics for the MCP DB tools
Patch release - run402-mcp quick wins surfaced by the MCPMark benchmark. @run402/sdk and run402 (CLI) are bumped in lockstep; the SDK carries the REST routing fix.
Improvements
run_sql,get_schema, andrest_querynow defaultproject_idto the active project. Pass it explicitly to override; omit it to use the project set by provisioning orrun402 projects use <id>. Removes the per-call project-id tax for an agent working against a single project, and returns a clear error when neither an id nor an active project is available.rest_querywithkey_type: "service"works again. Service-key REST now routes through the admin REST path (/admin/v1/rest/*) instead of the public PostgREST path the gateway rejects withADMIN_REQUIRED, so RLS-bypassing reads/writes succeed. Anon keys are unchanged.
Both surfaced while benchmarking the MCP server against the MCPMark benchmark.