fix(mcp): surface OAuth completion errors (#34145)

This commit is contained in:
Aiden Cline
2026-06-26 22:21:16 -05:00
committed by GitHub
parent 71c3a7c8f2
commit e1e0304a96
2 changed files with 12 additions and 11 deletions
@@ -263,7 +263,7 @@ mcpTest.instance(
expect(yield* mcp.finishAuth(name, "invalid-code")).toEqual({
status: "failed",
error: "OAuth completion failed",
error: "OAuth completion failed: Token exchange failed",
})
const entry = yield* auth.get(name)
expect(entry?.tokens?.accessToken).toBe("working-token")