mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-09 19:52:44 +00:00
fix(httpapi): preserve mcp oauth error parity (#24706)
This commit is contained in:
parent
4d74849c1a
commit
796b652d2b
4 changed files with 122 additions and 12 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue