feat(websearch): add managed mcp runtime and provider cooldowns

- switch ccs-websearch MCP to stdio-first framing and keep legacy compatibility

- add cooldown persistence and bounded retries for provider failures

- surface cooldown status in readiness output and regression tests
This commit is contained in:
Tam Nhu Tran committed 2026-03-31 14:22:11 -04:00
1 parent cae5b710b8
commit 7f83e041b7
10 files changed
+1115 -63

No files matched your search

+18 -3
View File
@@ -150,7 +150,12 @@ describe('InstanceManager MCP sync', () => {
JSON.stringify(
{
mcpServers: {
'ccs-websearch': { command: 'node', args: ['/global/server.cjs'] },
'ccs-websearch': {
type: 'stdio',
command: 'node',
args: ['/global/server.cjs'],
env: {},
},
shared: { command: 'global-shared' },
},
},
@@ -168,7 +173,12 @@ describe('InstanceManager MCP sync', () => {
JSON.stringify(
{
mcpServers: {
'ccs-websearch': { command: 'node', args: ['/old/server.cjs'] },
'ccs-websearch': {
type: 'stdio',
command: 'node',
args: ['/old/server.cjs'],
env: {},
},
shared: { command: 'instance-shared' },
instanceOnly: { command: 'instance-only' },
},
@@ -185,7 +195,12 @@ describe('InstanceManager MCP sync', () => {
mcpServers: Record<string, unknown>;
};
expect(instanceContent.mcpServers).toEqual({
'ccs-websearch': { command: 'node', args: ['/global/server.cjs'] },
'ccs-websearch': {
type: 'stdio',
command: 'node',
args: ['/global/server.cjs'],
env: {},
},
shared: { command: 'instance-shared' },
instanceOnly: { command: 'instance-only' },
});