fix(opencode): secure manual MCP OAuth callback

This commit is contained in:
Aiden Cline 2026-06-24 16:29:15 -05:00
commit ed486f0b49
7 changed files with 283 additions and 99 deletions

View file

@ -2304,6 +2304,7 @@ export class Auth2 extends HeyApiClient {
directory?: string
workspace?: string
code?: string
state?: string
},
options?: Options<never, ThrowOnError>,
) {
@ -2316,6 +2317,7 @@ export class Auth2 extends HeyApiClient {
{ in: "query", key: "directory" },
{ in: "query", key: "workspace" },
{ in: "body", key: "code" },
{ in: "body", key: "state" },
],
},
],

View file

@ -8407,6 +8407,7 @@ export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartRespo
export type McpAuthCallbackData = {
body?: {
code: string
state: string
}
path: {
name: string