chore: generate
This commit is contained in:
@@ -169,7 +169,7 @@ export function parseRedirectUri(redirectUri?: string): { port: number; path: st
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const url = new URL(redirectUri)
|
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
|
const path = url.pathname || OAUTH_CALLBACK_PATH
|
||||||
return { port, path }
|
return { port, path }
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
@@ -1530,6 +1530,10 @@ export type McpOAuthConfig = {
|
|||||||
* OAuth scopes to request during authorization
|
* OAuth scopes to request during authorization
|
||||||
*/
|
*/
|
||||||
scope?: string
|
scope?: string
|
||||||
|
/**
|
||||||
|
* OAuth redirect URI (default: http://127.0.0.1:19876/mcp/oauth/callback).
|
||||||
|
*/
|
||||||
|
redirectUri?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export type McpRemoteConfig = {
|
export type McpRemoteConfig = {
|
||||||
|
|||||||
@@ -9093,6 +9093,10 @@
|
|||||||
"scope": {
|
"scope": {
|
||||||
"description": "OAuth scopes to request during authorization",
|
"description": "OAuth scopes to request during authorization",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"redirectUri": {
|
||||||
|
"description": "OAuth redirect URI (default: http://127.0.0.1:19876/mcp/oauth/callback).",
|
||||||
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
|||||||
Reference in New Issue
Block a user