mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-20 18:57:17 +03:00
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:
committed by
GitHub
Unverified
parent
e756624814
commit
55276f2108
@@ -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",
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user