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...
|
||
|---|---|---|
| .. | ||
| mcp | ||
| providers | ||
| retrieval | ||
| index.ts | ||