continue-custom/core/context/mcp
Owen W. Taylor 9e05f745a5 MCPConnection: avoid accidentally mutating options.transport.env
The code that added the PATH to the stdio transport environment was
mutating the original options.transport.env object, which can lead
to an infinite loop of reloading the continue config since
MCPMananagerSingletone.setConnections() compares the old and new
options and forces a refresh if any existing server changed transport
options. This triggers a config reload because in core.ts we have:

  MCPManagerSingleton.getInstance().onConnectionsRefreshed = async () => {
     await this.configHandler.reloadConfig();
  };
Which thens calls setConnections() and so forth...
2025-05-02 13:51:02 -04:00
..
MCPConnection.test.ts add test 2025-05-01 13:39:53 +05:30
MCPConnection.ts MCPConnection: avoid accidentally mutating options.transport.env 2025-05-02 13:51:02 -04:00
MCPManagerSingleton.test.ts mcp manager singleton tests 2025-04-18 13:13:30 -07:00
MCPManagerSingleton.ts make updates to singleton 2025-04-23 14:50:52 -07:00