import { JsonValue, ResultContentComposition } from "./results.js"; import { CallToolResult, ClientCapabilities, Implementation, McpServer, ServerContext, ServerEventBus, ServerNotifier } from "@modelcontextprotocol/server"; import { SupabaseClient } from "@supabase/supabase-js"; import { JWTClaims, SupabaseEnv, UserClaims } from "@supabase/server"; //#region src/types.d.ts type DeepReadonly = Value extends ((...args: never[]) => unknown) ? Value : Value extends readonly (infer Item)[] ? readonly DeepReadonly[] : Value extends object ? { readonly [Key in keyof Value]: DeepReadonly } : Value; declare const CHUMBO_CAPABILITY_META_KEY: "dev.chumbo/capability"; declare const RESERVED_CLI_ROOT_COMMANDS: readonly ["login", "logout", "status", "commands", "skill", "completions", "help"]; type ReservedCliRootCommand = (typeof RESERVED_CLI_ROOT_COMMANDS)[number]; interface SupabaseMcpApiKeyIdentity { /** Stable application-owned identity for audit logs and scope resolution. */ readonly subject: string; /** Optional MCP client identifier associated with this key. */ readonly clientId?: string; /** Application capability scopes granted to this key. */ readonly scopes?: readonly string[]; } /** A verified OAuth access token from an application-owned authorization server. * The verifier must check issuer, audience/resource, expiry and revocation. * Chumbo does not forward this token to Supabase. */ interface SupabaseMcpOAuthIdentity { readonly subject: string; readonly clientId?: string; readonly scopes?: readonly string[]; /** Unix seconds, as required by the MCP bearer middleware. */ readonly expiresAt: number; } /** Canonical OAuth coordinates advertised by this MCP resource server. * Verify the token against both values before returning an identity. */ interface SupabaseMcpOAuthVerifyContext { readonly token: string; readonly resourceUrl: string; readonly issuer: string; } type SupabaseMcpAuthMode = "oauth" | "bearer" | "api-key" | "public"; interface SupabaseMcpAuthentication { /** The credential family that authenticated this request. */ readonly mode: SupabaseMcpAuthMode; /** Stable builder-defined strategy name for logs and policy decisions. */ readonly strategy: string; } interface SupabaseMcpPrincipal { readonly subject: string; readonly clientId?: string; readonly authentication: SupabaseMcpAuthentication; } interface SupabaseMcpRunScope { /** Stable builder project or installed-integration boundary. */ readonly installation: string; /** Stable MCP surface or server boundary inside that installation. */ readonly surface: string; /** Builder-authorized caller, account, or tenant partition. */ readonly partition: string; } interface SupabaseMcpRunCorrelationKey { /** Stable identifier carried by handles so rotations can select one key. */ readonly version: string; /** Deployment secret used only for run-handle HMAC operations. */ readonly secret: string; } interface SupabaseMcpPreviousRunCorrelationKey extends SupabaseMcpRunCorrelationKey { /** ISO 8601 end of the explicit verification overlap for this old key. */ readonly acceptUntil: string; } interface SupabaseMcpRunFact { readonly schemaVersion: 1; /** Scope-bound opaque correlation ID safe for lifecycle events and state keys. */ readonly id: string; readonly startedAt: string; readonly expiresAt: string; } /** Opaque HMAC-signed wire carrier string (`crun1..`). */ type RunHandle = string; type RunScope = SupabaseMcpRunScope; type RunCorrelationKey = SupabaseMcpRunCorrelationKey; type PreviousRunCorrelationKey = SupabaseMcpPreviousRunCorrelationKey; type RunFact = SupabaseMcpRunFact; interface MintedRun { /** Opaque signed value carried by a controlled client or run-aware tool. */ readonly handle: RunHandle; /** The bounded fact the same server will recover from handle. */ readonly run: SupabaseMcpRunFact; } /** * @deprecated Prefer `MintedRun` for `{ handle, run }` pairs returned by `mint`, * or `RunHandle` (`string`) for wire handle carriers. */ type SupabaseMcpRunHandle = MintedRun; interface SupabaseMcpRunCorrelationOptions { readonly currentKey: SupabaseMcpRunCorrelationKey; readonly previousKey?: SupabaseMcpPreviousRunCorrelationKey; /** Defaults to four hours or maxTtlSeconds when that ceiling is shorter. */ readonly ttlSeconds?: number; /** Maximum caller-selected lifetime. Defaults to thirty days. */ readonly maxTtlSeconds?: number; /** Explicit tool argument carrying a handle. Defaults to `run_id`. */ readonly argumentName?: string; /** * How invalid or expired run handles behave during invocation: * - `"reject"` (default): throw `SupabaseMcpRunCorrelationError` before capability code runs. * - `"ignore"`: degrade to `run = null` and record `runRejected` on `capability.finished`. */ readonly onInvalidHandle?: "reject" | "ignore"; /** * Issue and verify a stateless HMAC-signed `Mcp-Session-Id` header on MCP * sessions so clients correlate multi-step runs with zero tool-argument cost. */ readonly sessionHeader?: boolean | { readonly headerName?: string; }; /** * Resolve the application-owned boundary used to mint and verify a handle. * The same logical run must resolve the same scope on every request. */ scope(context: SupabaseMcpContext): SupabaseMcpRunScope | Promise; } type RunCorrelationOptions = SupabaseMcpRunCorrelationOptions; interface SupabaseMcpMintRunOptions { /** Defaults to the correlation instance's configured lifetime. */ readonly ttlSeconds?: number; } type MintRunOptions = SupabaseMcpMintRunOptions; interface SupabaseMcpResolveRunInput { readonly serverContext: ServerContext; /** Parsed arguments for a tool that deliberately exposes the configured field. */ readonly toolArguments?: unknown; } type ResolveRunInput = SupabaseMcpResolveRunInput; interface SupabaseMcpRunCorrelation { readonly argumentName?: string; mint(context: SupabaseMcpContext, options?: SupabaseMcpMintRunOptions): Promise; resolve(context: SupabaseMcpContext, input: SupabaseMcpResolveRunInput): Promise; } type SupabaseMcpCapabilityKind = "tool" | "resource" | "prompt"; interface SupabaseMcpLifecycleCapability { readonly kind: SupabaseMcpCapabilityKind; readonly name: string; /** Underlying canonical tool name when an active capability profile aliases `name`. */ readonly canonicalName?: string; } interface SupabaseMcpLifecycleServer { readonly name: string; readonly version: string; } type SupabaseMcpLifecycleOutcome = "success" | "tool-error" | "input-required" | "failure"; interface SupabaseMcpLifecycleEventCommon { /** ISO 8601 time at which this lifecycle transition occurred. */ readonly timestamp: string; readonly traceId: string; readonly server: SupabaseMcpLifecycleServer; readonly capability: SupabaseMcpLifecycleCapability; readonly principal: SupabaseMcpPrincipal | null; readonly authentication: SupabaseMcpAuthentication; } interface SupabaseMcpLifecycleEventV1 extends SupabaseMcpLifecycleEventCommon { readonly schemaVersion: 1; } interface SupabaseMcpLifecycleEventV2 extends SupabaseMcpLifecycleEventCommon { readonly schemaVersion: 2; /** Explicit application run, or null when this invocation supplied no handle. */ readonly run: SupabaseMcpRunFact | null; } interface SupabaseMcpCapabilityStartedEventV1 extends SupabaseMcpLifecycleEventV1 { readonly type: "capability.started"; } interface SupabaseMcpCapabilityFinishedEventV1 extends SupabaseMcpLifecycleEventV1 { readonly type: "capability.finished"; readonly durationMs: number; readonly outcome: SupabaseMcpLifecycleOutcome; readonly errorCode?: string; } interface SupabaseMcpCapabilityStartedEventV2 extends SupabaseMcpLifecycleEventV2 { readonly type: "capability.started"; readonly sessionId?: string; } interface SupabaseMcpCapabilityFinishedEventV2 extends SupabaseMcpLifecycleEventV2 { readonly type: "capability.finished"; readonly durationMs: number; readonly outcome: SupabaseMcpLifecycleOutcome; readonly errorCode?: string; readonly runRejected?: string; readonly sessionId?: string; } type SupabaseMcpCapabilityStartedEvent = SupabaseMcpCapabilityStartedEventV1 | SupabaseMcpCapabilityStartedEventV2; type SupabaseMcpCapabilityFinishedEvent = SupabaseMcpCapabilityFinishedEventV1 | SupabaseMcpCapabilityFinishedEventV2; /** Redacted, request-scoped facts emitted around capability invocation. */ type SupabaseMcpLifecycleEvent = SupabaseMcpCapabilityStartedEvent | SupabaseMcpCapabilityFinishedEvent; interface SupabaseMcpSurfaceToolAnnotations { readonly title?: string; readonly readOnlyHint?: boolean; readonly destructiveHint?: boolean; readonly idempotentHint?: boolean; readonly openWorldHint?: boolean; } /** One tool exactly as advertised to the successful discovery caller. */ interface SupabaseMcpSurfaceTool { readonly name: string; readonly title?: string; readonly description?: string; readonly inputSchema: Readonly>; readonly outputSchema?: Readonly>; readonly annotations?: SupabaseMcpSurfaceToolAnnotations; } /** * Canonical, redacted evidence derived from one complete successful tools/list. * It deliberately contains no caller identity, scopes, credentials, or traffic. */ interface SupabaseMcpSurfaceProof { readonly schemaVersion: 1; readonly server: SupabaseMcpLifecycleServer; readonly runtime: { readonly name: "chumbo"; readonly version: string; }; readonly authentication: SupabaseMcpAuthentication; readonly protocolVersion?: string; /** Active capability profile ID when `profiles` is configured on this server. */ readonly profile?: string; readonly tools: readonly SupabaseMcpSurfaceTool[]; /** SHA-256 of canonical JSON containing schemaVersion and tools. */ readonly contentDigest: `sha256:${string}`; } interface SupabaseMcpClientInfo { readonly name: string; readonly version: string; readonly title?: string; } type ResourceLinkSupport = "supported" | "unsupported" | "unknown"; interface SupabaseMcpClientSupport { /** Client declared `elicitation: {}` or `elicitation.form` (supports form MRTR). */ readonly elicitationForm: boolean; /** Client declared `elicitation.url` (supports out-of-band URL elicitation). */ readonly elicitationUrl: boolean; /** Client declared `extensions["io.modelcontextprotocol/ui"]` (renders `ui://` MCP Apps). */ readonly mcpAppsUi: boolean; /** Client declared `sampling`. */ readonly sampling: boolean; /** Client declared `roots`. */ readonly roots: boolean; /** * Host heuristic for `resource_link` content blocks (`ClientCapabilities` has * no wire bit for `resource_link`). Defaults to `"unknown"`, or `"unsupported"` * for known non-resource bridges or builder-configured `clientPolicy.resourceLinks`. */ readonly resourceLinks: ResourceLinkSupport; } interface SupabaseMcpClientContext { /** Protocol era of the current HTTP exchange. */ readonly era: "modern" | "legacy"; /** Validated `YYYY-MM-DD` protocol revision when known. */ readonly protocolVersion?: string; /** Validated client `Implementation` when carried on this request (`initialize` or 2026 envelope). */ readonly info: SupabaseMcpClientInfo | null; /** Raw validated `ClientCapabilities` from this request when present, deeply frozen. */ readonly capabilities: DeepReadonly | null; /** Normalized feature flags (recovered across 2025 requests via `cs1_` session bitmask). */ readonly supports: SupabaseMcpClientSupport; } interface SupabaseMcpClientPolicy { /** Override `supports.resourceLinks` classification based on `clientInfo` or `User-Agent`. */ resourceLinks?(input: { readonly info: SupabaseMcpClientInfo | null; readonly userAgent: string | null; }): ResourceLinkSupport; } interface McpCorsOptions { /** * Allowed browser origins (`["https://claude.ai"]`, `"*"`, or predicate). * Literal `"null"` origins are always rejected with HTTP 403. */ readonly origins: readonly string[] | "*" | ((origin: string) => boolean); /** Additional request headers allowed in preflight beyond standard MCP headers. */ readonly allowHeaders?: readonly string[]; /** Additional response headers exposed to browser JS beyond MCP/Chumbo defaults. */ readonly exposeHeaders?: readonly string[]; /** `Access-Control-Max-Age` in seconds on `204` preflights. Defaults to `600`. */ readonly maxAgeSeconds?: number; } interface McpTransportArmorOptions { /** * How server-push subscription streams (`GET` SSE and `POST` `subscriptions/listen`) * are handled. Defaults to `"disabled"` on stateless endpoints. */ readonly subscriptions?: "disabled" | "in-memory" | ServerEventBus; /** * Stateless `Mcp-Session-Id` header issuance on 2025-era `initialize` responses. * Defaults to `"stateless"`. */ readonly sessionId?: "stateless" | "disabled"; } interface SupabaseMcpApiKeyVerifyContext { readonly token: string; /** * Privileged client available only while verifying the key. It is never * exposed to tools through SupabaseMcpContext. */ readonly supabaseAdmin: SupabaseClient; } type SupabaseMcpApiKeyAuth = { mode: "api-key"; /** Stable name exposed as ctx.authentication.strategy. */ strategy?: string; /** * Credential prefix used to select this verifier without trying another * authentication strategy. Required for verifier-backed keys in multi mode. */ tokenPrefix?: string; /** Default scopes for a static key or a verifier result that omits scopes. */ scopes?: readonly string[]; } & ({ /** Simple single-key mode, normally loaded from an Edge Function secret. */key: string; /** Stable subject exposed as ctx.subject. Defaults to "api-key". */ subject?: string; verify?: never; } | { key?: never; subject?: never; /** Resolve an application-owned key table or existing key service. */ verify(context: SupabaseMcpApiKeyVerifyContext): SupabaseMcpApiKeyIdentity | null | Promise; }); type SupabaseMcpOAuthAuth = { mode: "oauth"; /** Stable name exposed as ctx.authentication.strategy. */ strategy?: string; authorizationServerMetadataUrl?: string | URL; scopes?: readonly string[]; } & ({ /** Defaults to the resource's Supabase Auth issuer. */issuer?: string | URL; verify?: never; } | { /** The authorization server that issued the opaque access token. */issuer: string | URL; /** Verify issuer, exact resource, expiry, and revocation. Return null for * an invalid token. Omitting this verifier uses Supabase JWT verification. */ verify: (context: SupabaseMcpOAuthVerifyContext) => SupabaseMcpOAuthIdentity | null | Promise; }); type SupabaseMcpProtectedAuth = SupabaseMcpOAuthAuth | { mode: "bearer"; strategy?: string; } | SupabaseMcpApiKeyAuth; type SupabaseMcpAuth = SupabaseMcpProtectedAuth | { mode: "multi"; /** * Protected strategies sharing one MCP endpoint. A token is routed to * exactly one strategy before verification; failed verification never * falls through to another strategy. */ strategies: readonly SupabaseMcpProtectedAuth[]; } | { mode: "public"; scopes?: readonly string[]; rateLimit?: true | SupabaseMcpPostgresRateLimit; }; interface SupabaseMcpPostgresRateLimit { /** Maximum requests accepted from one caller during each window. */ requests?: number; /** Fixed-window duration in seconds. */ windowSeconds?: number; /** Override the generated Postgres RPC name. */ functionName?: string; } interface SupabaseMcpStateNamespaceOptions { /** Default lifetime for values written in this namespace. */ ttlSeconds: number; /** Optional ceiling for a caller-selected shorter or longer lifetime. */ maxTtlSeconds?: number; } interface SupabaseMcpDurableStateOptions { /** * Deployment secret used only to derive an opaque per-credential partition. * It is never exposed through SupabaseMcpContext. */ hmacKey: string; /** Exact namespace allowlist available to application capability code. */ namespaces: Readonly>; /** * Optional Supabase environment owning the private durable-state RPCs. * Defaults to the application's ordinary Supabase environment. */ supabase?: { env?: Partial; }; } interface SupabaseMcpStateValue { readonly value: Value; readonly revision: number; readonly expiresAt: string; } interface SupabaseMcpStatePutOptions { readonly value: Value; /** Null creates missing state; a positive revision performs compare-and-swap. */ readonly expectedRevision: number | null; /** Defaults to the configured namespace lifetime. */ readonly ttlSeconds?: number; } interface SupabaseMcpStateDeleteOptions { readonly expectedRevision: number; } interface SupabaseMcpState { get(namespace: string, key: string): Promise | null>; put(namespace: string, key: string, options: SupabaseMcpStatePutOptions): Promise>; delete(namespace: string, key: string, options: SupabaseMcpStateDeleteOptions): Promise; /** Configured TTL bounds for `namespace`, used by short-TTL preview helpers. */ namespaceOptions?(namespace: string): { readonly ttlSeconds: number; readonly maxTtlSeconds: number; } | undefined; } type SupabaseMcpServer = McpServer & { /** * Register capabilities only when the current request has every scope. * Unscoped registration remains the default and needs no extra ceremony. */ withScopes(requiredScopes: readonly string[]): SupabaseMcpServer; }; interface SupabaseMcpContext { readonly request: Request; readonly supabase: SupabaseClient; readonly user: UserClaims | null; readonly jwtClaims: JWTClaims | null; /** Normalized identity independent of the credential mechanism. */ readonly principal: SupabaseMcpPrincipal | null; /** The exact strategy that authenticated this request. */ readonly authentication: SupabaseMcpAuthentication; /** Authenticated application principal, including non-Supabase API keys. */ readonly subject?: string; readonly clientId?: string; readonly scopes: readonly string[]; hasScope(scope: string): boolean; hasScopes(scopes: readonly string[]): boolean; readonly traceId: string; /** Normalized protocol era, client identity, and capability support flags. */ readonly client: SupabaseMcpClientContext; /** Validated visible-ASCII `Mcp-Session-Id` header when supplied, else `null`. */ readonly sessionId: string | null; /** * Optional request-scoped, credential-partitioned state. Present only when * protected authentication and durable state are both configured. */ readonly state?: SupabaseMcpState; /** * Optional `(credential, sessionId)`-partitioned durable state. Present only * when protected authentication, durable state, and a valid `Mcp-Session-Id` * header are all present. */ readonly sessionState?: SupabaseMcpState; /** * Verified explicit application-run fact when `runCorrelation` is configured: * `RunFact` when request carried a valid handle, `null` when none was supplied, * `undefined` when `runCorrelation` is not configured. */ readonly run?: SupabaseMcpRunFact | null; } interface SupabaseMcpErrorEvent { readonly error: Error; readonly phase: "auth" | "events" | "metadata" | "mcp" | "rate-limit" | "register" | "results" | "runtime" | "surface"; readonly traceId?: string; } interface SupabaseMcpResultMiddlewareInput { readonly context: SupabaseMcpContext; readonly tool: { readonly name: string; }; /** * A deeply frozen structured-clone snapshot of the original successful * handler result. Every middleware receives the same authored snapshot. */ readonly result: DeepReadonly; } type SupabaseMcpResultMiddleware = (input: SupabaseMcpResultMiddlewareInput) => ResultContentComposition | null | undefined | Promise; interface SupabaseMcpAccessOptions { /** * Resolve application scopes for this request. When omitted, OAuth/Bearer * token scopes (or public scopes) are used unchanged. */ resolveScopes?(context: SupabaseMcpContext): readonly string[] | Promise; /** * Restrict which verified OAuth / API-key `clientId` values may call this * MCP surface. Checked against verified `jwtClaims.client_id` / verifier * `clientId` (never unverified `clientInfo.name`). Rejects with HTTP 403. */ readonly allowClients?: readonly string[] | ((clientId: string | undefined, context: SupabaseMcpContext) => boolean | Promise); /** * Require every listed scope before entering the MCP handler. Missing scopes * short-circuit with HTTP 403 + RFC 6750 `WWW-Authenticate` `insufficient_scope`. */ readonly requiredScopes?: readonly string[]; } type SupabaseMcpPipelineAccessOptions = SupabaseMcpAccessOptions; interface SupabaseMcpProfileLike { readonly id: Id; readonly tools: ReadonlySet; readonly systemTools: ReadonlySet; readonly presentedNameFor: (canonicalName: string) => string | undefined; readonly canonicalNameFor: (presentedName: string) => string | undefined; readonly instructions?: string | ((context: SupabaseMcpContext) => string | undefined | Promise); } interface SupabaseMcpProfileCatalogLike { readonly ids: readonly ProfileId[]; readonly vocabulary?: { readonly knownTools: ReadonlySet; readonly plainWordTools: ReadonlySet; rewrite(text: string, mounted: ReadonlySet, aliases?: ReadonlyMap): string; }; get(id: ProfileId): SupabaseMcpProfileLike; parseId(value: string): ProfileId; } interface SupabaseMcpProfilesOptions { readonly catalog: SupabaseMcpProfileCatalogLike; select(context: SupabaseMcpContext): ProfileId | Promise; } interface CreateSupabaseMcpOptions { server: Implementation; /** * Server-level usage guidance returned in the `initialize` result. * Clients surface it to the model as "how to use this server" context, * complementing per-tool descriptions. A resolver receives the * request context, so row-defined servers can return per-surface * instructions. */ instructions?: string | ((context: SupabaseMcpContext) => string | undefined | Promise); resourceUrl: string | URL; auth?: SupabaseMcpAuth; /** Optional Postgres-backed state for authenticated MCP capabilities. */ state?: SupabaseMcpDurableStateOptions; /** Optional explicit application-run correlation for handlers and lifecycle v2. */ runCorrelation?: SupabaseMcpRunCorrelation; access?: SupabaseMcpAccessOptions; /** Optional multi-audience capability profile catalog and request-time selector. */ profiles?: SupabaseMcpProfilesOptions; /** Optional client capability heuristics and fallback policies. */ clientPolicy?: SupabaseMcpClientPolicy; /** Optional browser MCP host CORS preflight and origin allowlist. */ cors?: McpCorsOptions; register(server: SupabaseMcpServer, context: SupabaseMcpContext): void | Promise; /** * Add bounded content to successful tool results. Middleware runs in the * declared order against the same immutable authored-result snapshot. */ resultMiddleware?: SupabaseMcpResultMiddleware | readonly SupabaseMcpResultMiddleware[]; supabase?: { env?: Partial; }; protocol?: { legacy?: "stateless" | "reject"; responseMode?: "auto" | "json" | "sse"; subscriptions?: McpTransportArmorOptions["subscriptions"]; sessionId?: McpTransportArmorOptions["sessionId"]; }; /** * Receive redacted lifecycle facts in an application-owned sink. Returned * promises are observed for failures but never awaited by the MCP request. */ onEvent?(event: SupabaseMcpLifecycleEvent): void | Promise; /** * Receive a bounded, redacted proof after a complete successful tools/list. * Chumbo performs no surface inspection or delivery work when this is absent. */ onSurface?(proof: SupabaseMcpSurfaceProof): void | Promise; onError?(event: SupabaseMcpErrorEvent): void; } interface SupabaseMcpApp { fetch(request: Request): Promise; close(): Promise; readonly notify: ServerNotifier; } interface VerifiedSupabaseIdentity { token: string; userClaims: UserClaims; jwtClaims: JWTClaims; } interface RuntimeDependencies { verifyToken(token: string, env?: Partial): Promise; createClient(token: string | null, env?: Partial): SupabaseClient; createAdminClient(env?: Partial): SupabaseClient; fetch: typeof globalThis.fetch; /** Optional deterministic clock for runtime tests. */ now?(): number; randomUUID(): string; } //#endregion export { CHUMBO_CAPABILITY_META_KEY, CreateSupabaseMcpOptions, DeepReadonly, McpCorsOptions, McpTransportArmorOptions, MintRunOptions, MintedRun, PreviousRunCorrelationKey, RESERVED_CLI_ROOT_COMMANDS, ReservedCliRootCommand, ResolveRunInput, ResourceLinkSupport, RunCorrelationKey, RunCorrelationOptions, RunFact, RunHandle, RunScope, RuntimeDependencies, SupabaseMcpAccessOptions, SupabaseMcpApiKeyAuth, SupabaseMcpApiKeyIdentity, SupabaseMcpApiKeyVerifyContext, SupabaseMcpApp, SupabaseMcpAuth, SupabaseMcpAuthMode, SupabaseMcpAuthentication, SupabaseMcpCapabilityFinishedEvent, SupabaseMcpCapabilityFinishedEventV1, SupabaseMcpCapabilityFinishedEventV2, SupabaseMcpCapabilityKind, SupabaseMcpCapabilityStartedEvent, SupabaseMcpCapabilityStartedEventV1, SupabaseMcpCapabilityStartedEventV2, SupabaseMcpClientContext, SupabaseMcpClientInfo, SupabaseMcpClientPolicy, SupabaseMcpClientSupport, SupabaseMcpContext, SupabaseMcpDurableStateOptions, SupabaseMcpErrorEvent, SupabaseMcpLifecycleCapability, SupabaseMcpLifecycleEvent, SupabaseMcpLifecycleOutcome, SupabaseMcpLifecycleServer, SupabaseMcpMintRunOptions, SupabaseMcpOAuthAuth, SupabaseMcpOAuthIdentity, SupabaseMcpOAuthVerifyContext, SupabaseMcpPipelineAccessOptions, SupabaseMcpPostgresRateLimit, SupabaseMcpPreviousRunCorrelationKey, SupabaseMcpPrincipal, SupabaseMcpProfileCatalogLike, SupabaseMcpProfileLike, SupabaseMcpProfilesOptions, SupabaseMcpProtectedAuth, SupabaseMcpResolveRunInput, SupabaseMcpResultMiddleware, SupabaseMcpResultMiddlewareInput, SupabaseMcpRunCorrelation, SupabaseMcpRunCorrelationKey, SupabaseMcpRunCorrelationOptions, SupabaseMcpRunFact, SupabaseMcpRunHandle, SupabaseMcpRunScope, SupabaseMcpServer, SupabaseMcpState, SupabaseMcpStateDeleteOptions, SupabaseMcpStateNamespaceOptions, SupabaseMcpStatePutOptions, SupabaseMcpStateValue, SupabaseMcpSurfaceProof, SupabaseMcpSurfaceTool, SupabaseMcpSurfaceToolAnnotations, VerifiedSupabaseIdentity }; //# sourceMappingURL=types.d.ts.map