## Problem
Self-hosted Studio still uses `@supabase/mcp-server-supabase` 0.17.0,
two releases behind even before
[0.20.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.20.0).
## Solution
Bump `^0.17.0` to `^0.20.0` in `apps/studio/package.json` and update the
lockfile, which takes `@supabase/mcp-utils` from 0.10.0 to 0.11.1. The
platform interface only gained optional arguments, so the bump itself
compiles without changes.
- The debugging group gains `get_issues`, which covers security and
performance checks on self-hosted. It reports the health check as
unavailable because self-hosted has no health advisors.
- `generate_typescript_types` now accepts an optional `schemas`
parameter. Without this fix, self-hosted would silently ignore it and
could return types for different schemas than the caller requested.
`lib/api/self-hosted/mcp.ts` now passes `schemas` to
`generateTypescriptTypes` in `lib/api/self-hosted/generate-types.ts`,
which sends it to pg-meta as `included_schemas`. When the caller omits
`schemas`, self-hosted still uses the schemas PostgREST exposes. Tests
in `generate-types.test.ts` and `mcp.test.ts` cover both cases.
The MCP Apps support from 0.18.0 and 0.19.0 stays off because Studio
doesn’t opt in.
## Review instructions
1. Confirm CI passes.
2. With self-hosted Studio running, connect an MCP client to `/api/mcp`
and confirm `tools/list` includes `get_issues`.
3. Call `generate_typescript_types` with `schemas: ["auth"]` (or another
schema PostgREST doesn’t expose) and confirm it returns types only for
the requested schema.
Closes [AI-1582](https://linear.app/supabase/issue/AI-1582)