fix(httpapi): preserve mcp oauth error parity (#24706)

This commit is contained in:
Kit Langton 2026-04-27 22:33:21 -04:00 committed by GitHub
parent 4d74849c1a
commit 796b652d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 122 additions and 12 deletions

View file

@ -2129,6 +2129,10 @@ export type McpStatus =
| McpStatusNeedsAuth
| McpStatusNeedsClientRegistration
export type McpUnsupportedOAuthError = {
error: string
}
export type Path = {
home: string
state: string
@ -4907,9 +4911,9 @@ export type McpAuthStartData = {
export type McpAuthStartErrors = {
/**
* Bad request
* MCP server does not support OAuth
*/
400: BadRequestError
400: McpUnsupportedOAuthError
/**
* Not found
*/
@ -4985,9 +4989,9 @@ export type McpAuthAuthenticateData = {
export type McpAuthAuthenticateErrors = {
/**
* Bad request
* MCP server does not support OAuth
*/
400: BadRequestError
400: McpUnsupportedOAuthError
/**
* Not found
*/