fix: MCP services part 12
This commit is contained in:
parent
1be222e31c
commit
674a750047
2 changed files with 3 additions and 16 deletions
|
|
@ -72,7 +72,6 @@ export class MCPService
|
|||
configName: assistant.name,
|
||||
serverCount: assistant.mcpServers?.length || 0,
|
||||
});
|
||||
console.log("INITIALIZING MCP", JSON.stringify(assistant));
|
||||
|
||||
await this.shutdownConnections();
|
||||
|
||||
|
|
|
|||
|
|
@ -8,21 +8,9 @@ import { getAllTools } from './streamChatResponse.js';
|
|||
describe('getAllTools - Tool Filtering', () => {
|
||||
beforeEach(() => {
|
||||
// Clean up service container state before each test
|
||||
const services = [
|
||||
SERVICE_NAMES.TOOL_PERMISSIONS,
|
||||
SERVICE_NAMES.AUTH,
|
||||
SERVICE_NAMES.API_CLIENT,
|
||||
SERVICE_NAMES.CONFIG,
|
||||
SERVICE_NAMES.MODEL,
|
||||
SERVICE_NAMES.MCP
|
||||
];
|
||||
|
||||
services.forEach(service => {
|
||||
// Reset service state
|
||||
(serviceContainer as any).services.delete(service);
|
||||
(serviceContainer as any).factories.delete(service);
|
||||
(serviceContainer as any).dependencies.delete(service);
|
||||
});
|
||||
serviceContainer.removeAllListeners()
|
||||
Object.values(SERVICE_NAMES).forEach(name => {
|
||||
})
|
||||
});
|
||||
|
||||
test('should exclude Bash tool in plan mode after service initialization', async () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue