mirror of
https://fastgit.cc/https://github.com/anomalyco/opencode
synced 2026-04-30 22:00:53 +08:00
fix(httpapi): preserve mcp oauth error parity (#24706)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user