Răsfoiți Sursa

chore: generate

GitHub Action 2 luni în urmă
părinte
comite
0233dd1b39

+ 1 - 1
packages/opencode/src/mcp/oauth-provider.ts

@@ -169,7 +169,7 @@ export function parseRedirectUri(redirectUri?: string): { port: number; path: st
 
   try {
     const url = new URL(redirectUri)
-    const port = url.port ? parseInt(url.port, 10) : (url.protocol === "https:" ? 443 : 80)
+    const port = url.port ? parseInt(url.port, 10) : url.protocol === "https:" ? 443 : 80
     const path = url.pathname || OAUTH_CALLBACK_PATH
     return { port, path }
   } catch {

+ 4 - 0
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -1530,6 +1530,10 @@ export type McpOAuthConfig = {
    * OAuth scopes to request during authorization
    */
   scope?: string
+  /**
+   * OAuth redirect URI (default: http://127.0.0.1:19876/mcp/oauth/callback).
+   */
+  redirectUri?: string
 }
 
 export type McpRemoteConfig = {

+ 4 - 0
packages/sdk/openapi.json

@@ -9093,6 +9093,10 @@
           "scope": {
             "description": "OAuth scopes to request during authorization",
             "type": "string"
+          },
+          "redirectUri": {
+            "description": "OAuth redirect URI (default: http://127.0.0.1:19876/mcp/oauth/callback).",
+            "type": "string"
           }
         },
         "additionalProperties": false