/token end-point authentication failing #276
AshokChava
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am seeing the following error when I try to have oauth flow for an MCP server in my MCPO and I have tried all possible token_endpoint_auth_method but none seems to be working.
The same MCP server works fine with VSCode cline with oauth flow, so wondering if this is a bug in MCPO.
Following is my MCPO config:
{
"mcpServers": {
"m365/sharepoint": {
"type": "streamable_http",
"url": "http://localhost:8095/m365/sharepoint",
"oauth": {
"server_url": "http://localhost:8095",
"client_metadata": {
"token_endpoint_auth_method": "client_secret_basic"
}
Error:
2025-12-19 09:10:50,528 - ERROR - OAuth flow error
Traceback (most recent call last):
File "C:\Development\Python311\Lib\site-packages\mcp\client\auth\oauth2.py", line 587, in async_auth_flow
await self._handle_token_response(token_response)
File "C:\Development\Python311\Lib\site-packages\mcp\client\auth\oauth2.py", line 405, in _handle_token_response
raise OAuthTokenError(f"Token exchange failed ({response.status_code}): {body_text}") # pragma: no cover
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mcp.client.auth.exceptions.OAuthTokenError: Token exchange failed (401): {"error":"unauthorized_client","error_description":"Client secret is required"}
Beta Was this translation helpful? Give feedback.
All reactions