Elffuss BraidHub

kikocis/continue public

0cbdfa622ced · 659 BRawPermalink
1import { EMPTY_MCP_STATE, MCPService } from "../../../services/MCPService.js";
2
3// Mock MCP Service
4export class MockMCPService extends MCPService {
5 constructor() {
6 super();
7 }
8 getTools() {
9 return [];
10 }
11 getPrompts() {
12 return [];
13 }
14 async restartAllServers() {}
15 async runTool() {
16 return {};
17 }
18 getServerInfo() {
19 return {
20 config: {
21 name: "example",
22 },
23 toolNames: [],
24 promptNames: [],
25 warnings: [],
26 status: "connected" as const,
27 };
28 }
29
30 async doInitialize() {
31 return { ...EMPTY_MCP_STATE };
32 }
33
34 async stopServer() {}
35 async restartServer() {}
36
37 async cleanup() {}
38}