continue icon indicating copy to clipboard operation
continue copied to clipboard

MCP server timeout

Open steelp02 opened this issue 6 months ago • 2 comments

Before submitting your bug report

Relevant environment info

- OS: macOS
- Continue version: 1.0.6
- IDE version: 1.99.3
- YAML config:
mcpServers:
  - name: snowflake_pip
    command: uvenv
    args:
      - run
      - mcp_snowflake_server
      - --
      - --authenticator
      - external browser

Description

ISSUE

When using an external MCP server like for instance map_snowflake_server, it takes a while to start up the server, especially when using external browser authentication (longer than the default time in the DEFAULT_MCP_TIMEOUT parameter in core/context/mcp/MCPConnection.ts). This results in the server being started multiple times and failing every time on a connection time out (even though the server did start fully, but is not recognised by continue).

RESOLUTION

Please add an option in the YAML config to set a longer mcp_timeout value to overcome this.

To reproduce

  1. install uvenv on your computer
  2. add the config as above under mcpServers in config.yaml, add a username and server address (I omitted this due to security reasons)
  3. look at the MCP tab in the prompt window and observe the error.

Log output


steelp02 avatar Apr 24 '25 09:04 steelp02