From 060fbc9ce7404882220c2daf1f61318bd68ba911 Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Fri, 22 May 2026 11:42:14 +0000 Subject: [PATCH] chore: generate --- packages/opencode/src/mcp/index.ts | 4 +--- packages/sdk/js/src/v2/gen/types.gen.ts | 1 + packages/sdk/openapi.json | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/opencode/src/mcp/index.ts b/packages/opencode/src/mcp/index.ts index e72b49f343..6ebc714a27 100644 --- a/packages/opencode/src/mcp/index.ts +++ b/packages/opencode/src/mcp/index.ts @@ -773,9 +773,7 @@ export const layer = Layer.effect( // Resolve effective redirect URI: explicit redirectUri > callbackPort shorthand > default const effectiveRedirectUri = oauthConfig?.redirectUri ?? - (oauthConfig?.callbackPort - ? `http://127.0.0.1:${oauthConfig.callbackPort}${OAUTH_CALLBACK_PATH}` - : undefined) + (oauthConfig?.callbackPort ? `http://127.0.0.1:${oauthConfig.callbackPort}${OAUTH_CALLBACK_PATH}` : undefined) // Start the callback server with custom redirectUri if configured yield* Effect.promise(() => McpOAuthCallback.ensureRunning(effectiveRedirectUri)) diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts index 16a4bd3106..a549559826 100644 --- a/packages/sdk/js/src/v2/gen/types.gen.ts +++ b/packages/sdk/js/src/v2/gen/types.gen.ts @@ -1136,6 +1136,7 @@ export type McpOAuthConfig = { clientId?: string clientSecret?: string scope?: string + callbackPort?: number redirectUri?: string } diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json index 157799b00c..4d5391afbb 100644 --- a/packages/sdk/openapi.json +++ b/packages/sdk/openapi.json @@ -13763,6 +13763,11 @@ "scope": { "type": "string" }, + "callbackPort": { + "type": "integer", + "minimum": 1, + "maximum": 65535 + }, "redirectUri": { "type": "string" }