Replies: 2 comments
-
|
I was trying to achieve the same setup recently. From what I can tell, LiteLLM’s MCP OAuth flow does not yet fully support GitHub Copilot MCP’s OAuth 2.1 + DCR flow out of the box. It seems to expect pre-configured authorization details instead of dynamically registering the client. The Would be great if LiteLLM could officially document:
Right now PAT seems to be the most reliable working approach. |
Beta Was this translation helpful? Give feedback.
-
|
We don't support DCR and we are not going to be able to do so. I hope we can eventually support CIMD, but until then there are two options: Pre-register a GitHub App (or GitHub Oauth App) and provide the client credentials hard coded, I know some MCP clients support this and this is the expected path and official fallback when DCR is not available in the MCP spec. If the gateway or client doesn't support this, the alternative is PAT or course, although of course that is less than ideal. I don't know in the specific case of the gateway you referenced, but pre-registering app is a solid approach and if they don't support you could ask. Not all auth servers support DCR (it's not just GitHub that doesn't), unfortunately it's not a good design and we cannot risk our existing and pretty load bearing app infrastructure on DCR. Let me know if you need any advice. I know for example OpenCode has documentation for pre-registration of app, and then that is standard Oauth login after that and works well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’m trying to add the official GitHub Copilot MCP server to LiteLLM MCP Gateway through the LiteLLM UI.
The remote MCP server URL is:
I want to avoid using a GitHub PAT and instead use the OAuth flow, ideally OAuth 2.1 with Dynamic Client Registration (DCR).
GitHub’s documentation and changelog suggest enhanced MCP OAuth support and DCR support, but I’m not sure how this should be configured specifically in LiteLLM.
In LiteLLM UI, I tried configuring the MCP server with:
I also checked the metadata from:
However, during the authorization flow, LiteLLM returns errors such as:
{"detail": "MCP server authorization url is not set"}or:
{"detail": "invalid_request"}Questions
I’m looking for the recommended production setup for GitHub Copilot MCP through LiteLLM without using PAT-based authentication.
Beta Was this translation helpful? Give feedback.
All reactions