diff --git a/server/routes/discovery/mcp.ts b/server/routes/discovery/mcp.ts index 18be713d33..c72ee0bdc4 100644 --- a/server/routes/discovery/mcp.ts +++ b/server/routes/discovery/mcp.ts @@ -30,9 +30,12 @@ router.get( }), client_id_metadata_document_supported: mcpEnabled, response_types_supported: OAuthHelper.responseTypes, + response_modes_supported: ["query"], grant_types_supported: OAuthHelper.grantTypes, token_endpoint_auth_methods_supported: OAuthHelper.tokenEndpointAuthMethods, + revocation_endpoint_auth_methods_supported: + OAuthHelper.tokenEndpointAuthMethods, code_challenge_methods_supported: ["S256"], scopes_supported: OAuthHelper.mcpScopes, }; diff --git a/server/routes/oauth/oauth.test.ts b/server/routes/oauth/oauth.test.ts index 1812d26214..03f9824863 100644 --- a/server/routes/oauth/oauth.test.ts +++ b/server/routes/oauth/oauth.test.ts @@ -529,6 +529,7 @@ describe("GET /.well-known/oauth-authorization-server", () => { expect(body.revocation_endpoint).toContain("/oauth/revoke"); expect(body.client_id_metadata_document_supported).toBe(true); expect(body.response_types_supported).toEqual(["code"]); + expect(body.response_modes_supported).toEqual(["query"]); expect(body.grant_types_supported).toEqual([ "authorization_code", "refresh_token", @@ -537,6 +538,10 @@ describe("GET /.well-known/oauth-authorization-server", () => { "client_secret_post", "none", ]); + expect(body.revocation_endpoint_auth_methods_supported).toEqual([ + "client_secret_post", + "none", + ]); expect(body.code_challenge_methods_supported).toEqual(["S256"]); expect(body.scopes_supported).toEqual(["read", "write"]); });