MCP Server doesnt work.
Opened this issue · 1 comments
Before submitting your bug report
- I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- I believe this is a bug. I'll try to join the Continue Discord for questions
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS:
- Continue version:
- IDE version:
- Model:
- config:
OR link to agent in Continue hub:Description
MCP Server can't be added. If i click the + it opens a new file everytime and when I only have one file it doesnt show the MCP Server there.
To reproduce
- OS: Windows
- Continue version:1.3.12
- IDE version: 1.104.1
- Model: Sonnet 4
Log output
Hi @PierrunoYT,
I've investigated this issue and found what's causing the problem. When you click the "+" button to add an MCP server, the system is actually creating the configuration file correctly, but there are two issues:
- The file opens in the editor - This is confusing because you expect to see the MCP server UI, not a file editor
- The UI doesn't refresh - Even though the MCP server configuration file is created, the interface doesn't update to show it
For the Continue team (@tingwai):
The issue stems from the createNewWorkspaceBlockFile function automatically opening the created file, combined with the UI not refreshing after the file is created. Here's what needs to be fixed:
- Remove or make optional the
await ide.openFile(fileUri)call increateNewWorkspaceBlockFile - Ensure that after creating an MCP server file, the configuration is reloaded and the UI is notified
- The
mcpServerStatusesin the Redux store needs to be updated to reflect the new server
Temporary workaround for users:
After clicking the "+" button, you can manually refresh the configuration by either:
- Restarting VS Code
- Making any small edit to a Continue config file (like adding a space and saving)
This will force the extension to reload and show your new MCP server.