Describe the bug
For remote MCP servers created with Static Auth enabled but without Static OAuth credentials configured (status: Requires OAuth Config), the UI incorrectly shows a Connect To Server option in the MCP server detail view (both from the MCP Servers page and from Chat → Add MCP Server). When clicked, it returns a 400 error indicating that an administrator must configure an OAuth client. Expected behavior is that users should not be offered the Connect option until OAuth credentials are configured.
To Reproduce
Steps to reproduce the behavior:
- Create a remote MCP server with static auth enabled.
- Do not configure Static OAuth credentials so that the entry is in
Requires OAuth Config status
- Go to the
MCP Servers page
- Select this entry to open the detail view
Notice that the Connect To Server option is presented.
- Click on the
Connect To Server option.
Notice that the user is presented with 400 /mcp-servers: catalog entry requires OAuth configuration by an administrator before it can be used error
Scenario 2:
- Create a remote MCP server with static auth enabled.
- Do not configure Static OAuth credentials so that the entry is in
Requires OAuth Config status
- Go to the
Chat view.
- Use the
Add MCP Server option
Notice that the MCP server in Requires OAuth Config status has the connect to server option disabled with Oauth Configuration Required as expected.
- Select this MCP server entry.
Notice that the Connect To Server option is presented.
- Click on the
Connect To Server option.
Notice that the user is presented with 400 /mcp-servers: catalog entry requires OAuth configuration by an administrator before it can be used error
Expected behavior
The user should not be presented with the Connect To Server option in the MCP server detail view in either scenario.
Describe the bug
For remote MCP servers created with Static Auth enabled but without Static OAuth credentials configured (status:
Requires OAuth Config), the UI incorrectly shows aConnect To Serveroption in the MCP server detail view (both from theMCP Serverspage and from Chat →Add MCP Server). When clicked, it returns a 400 error indicating that an administrator must configure an OAuth client. Expected behavior is that users should not be offered the Connect option until OAuth credentials are configured.To Reproduce
Steps to reproduce the behavior:
Requires OAuth ConfigstatusMCP ServerspageNotice that the
Connect To Serveroption is presented.Connect To Serveroption.Notice that the user is presented with
400 /mcp-servers: catalog entry requires OAuth configuration by an administrator before it can be usederrorScenario 2:
Requires OAuth ConfigstatusChatview.Add MCP ServeroptionNotice that the MCP server in
Requires OAuth Configstatus has the connect to server option disabled withOauth Configuration Requiredas expected.Notice that the
Connect To Serveroption is presented.Connect To Serveroption.Notice that the user is presented with
400 /mcp-servers: catalog entry requires OAuth configuration by an administrator before it can be usederrorExpected behavior
The user should not be presented with the
Connect To Serveroption in the MCP server detail view in either scenario.