feat(mcp): add reconnect command and implement auto-reconnect logic

- Added a new reconnect command to the MCP CLI.
- Implemented auto-reconnect functionality in DiscoveredMCPToolInvocation to handle connection errors with retry logic.
- Enhanced tests to cover reconnect scenarios and ensure reliability during connection failures.
This commit is contained in:
qqqys 2026-03-16 23:25:33 +08:00
parent 9391779cd0
commit 8a2bda67ed
6 changed files with 874 additions and 95 deletions

View file

@ -23,6 +23,7 @@
"src/commands/mcp/add.test.ts",
"src/commands/mcp/list.test.ts",
"src/commands/mcp/remove.test.ts",
"src/commands/mcp/reconnect.test.ts",
"src/config/config.integration.test.ts",
"src/config/config.test.ts",
"src/config/extension.test.ts",