continuedev/continue

MCP Server doesnt work.

Opened this issue · 1 comments

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:

Description

Image

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:

  1. The file opens in the editor - This is confusing because you expect to see the MCP server UI, not a file editor
  2. 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:

  1. Remove or make optional the await ide.openFile(fileUri) call in createNewWorkspaceBlockFile
  2. Ensure that after creating an MCP server file, the configuration is reloaded and the UI is notified
  3. The mcpServerStatuses in 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.