chore: generate

This commit is contained in:
GitHub Action
2026-01-16 05:37:24 +00:00
parent 40b275d7e6
commit 0233dd1b39
3 changed files with 9 additions and 1 deletions

View File

@@ -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 {

View File

@@ -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 = {

View File

@@ -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