fix(mcp): send logo_uri on dynamic client registration (#59031)

Co-authored-by: DS <78942835+Tarquinen@users.noreply.github.com>
This commit is contained in:
Andras Lassu
2026-11-04 05:53:13 +01:00
committed by GitHub
Unverified
parent e756624814
commit 55276f2108
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -185,6 +185,7 @@ const provider = (options: Options): OAuthClientProvider => {
redirect_uris: [redirectUrl],
client_name: "opencode",
client_uri: "https://opencode.ai",
logo_uri: "https://opencode.ai/web-app-manifest-512x512.png",
grant_types: ["authorization_code", "refresh_token"],
response_types: ["code"],
token_endpoint_auth_method: client?.client_secret ? "client_secret_post" : "none",
+5
View File
@@ -559,6 +559,11 @@ describe("MCP OAuth", () => {
const { url } = await Effect.runPromise(Effect.scoped(start(server))).finally(() => server.stop(true))
expect(url.searchParams.get("client_id")).toBe("registered")
expect(registrations).toHaveLength(1)
expect(registrations[0]).toMatchObject({
client_name: "opencode",
client_uri: "https://opencode.ai",
logo_uri: "https://opencode.ai/web-app-manifest-512x512.png",
})
})
test("reuses the client registered by an earlier login", async () => {