repoburg 1.3.319 → 1.3.320
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-pane/backend/dist/index.js +156 -100
- package/agent-pane/backend/dist/server.js +156 -100
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.d.ts +2 -1
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js +10 -0
- package/backend/dist/src/agent-runtime/agent-runtime-event-emitter.js.map +1 -1
- package/backend/dist/src/agent-runtime/agent-runtime.types.d.ts +12 -1
- package/backend/dist/src/ai-actions/ai-action-batch.service.js +6 -3
- package/backend/dist/src/ai-actions/ai-action-batch.service.js.map +1 -1
- package/backend/dist/src/app.module.js +2 -9
- package/backend/dist/src/app.module.js.map +1 -1
- package/backend/dist/src/application-state/application-state.service.d.ts +3 -4
- package/backend/dist/src/application-state/application-state.service.js +21 -25
- package/backend/dist/src/application-state/application-state.service.js.map +1 -1
- package/backend/dist/src/context-generation/context-generation.service.js +3 -0
- package/backend/dist/src/context-generation/context-generation.service.js.map +1 -1
- package/backend/dist/src/context-generation/project-guidance.d.ts +12 -0
- package/backend/dist/src/context-generation/project-guidance.js +103 -0
- package/backend/dist/src/context-generation/project-guidance.js.map +1 -0
- package/backend/dist/src/core-entities/mcp-config.entity.d.ts +3 -1
- package/backend/dist/src/core-entities/mcp-config.entity.js +17 -1
- package/backend/dist/src/core-entities/mcp-config.entity.js.map +1 -1
- package/backend/dist/src/global-config/dto/update-global-config.dto.d.ts +2 -0
- package/backend/dist/src/global-config/dto/update-global-config.dto.js +12 -0
- package/backend/dist/src/global-config/dto/update-global-config.dto.js.map +1 -1
- package/backend/dist/src/global-config/global-config.service.d.ts +2 -0
- package/backend/dist/src/global-config/global-config.service.js.map +1 -1
- package/backend/dist/src/interactive-chat/auto-compact.service.d.ts +34 -0
- package/backend/dist/src/interactive-chat/auto-compact.service.js +259 -0
- package/backend/dist/src/interactive-chat/auto-compact.service.js.map +1 -0
- package/backend/dist/src/interactive-chat/chat.module.js +2 -5
- package/backend/dist/src/interactive-chat/chat.module.js.map +1 -1
- package/backend/dist/src/interactive-chat/chat.service.d.ts +12 -4
- package/backend/dist/src/interactive-chat/chat.service.js +102 -39
- package/backend/dist/src/interactive-chat/chat.service.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/execute-code.handler.d.ts +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/execute-code.handler.js +8 -2
- package/backend/dist/src/llm-orchestration/action-handlers/execute-code.handler.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/mcp-tool-action.handler.d.ts +5 -2
- package/backend/dist/src/llm-orchestration/action-handlers/mcp-tool-action.handler.js +50 -17
- package/backend/dist/src/llm-orchestration/action-handlers/mcp-tool-action.handler.js.map +1 -1
- package/backend/dist/src/llm-orchestration/action-handlers/run-command.handler.js +9 -1
- package/backend/dist/src/llm-orchestration/action-handlers/run-command.handler.js.map +1 -1
- package/backend/dist/src/llm-orchestration/hooks/follow-up-post-execution.hook.js +8 -0
- package/backend/dist/src/llm-orchestration/hooks/follow-up-post-execution.hook.js.map +1 -1
- package/backend/dist/src/llm-orchestration/hooks/yolo-mode-post-execution.hook.js +2 -1
- package/backend/dist/src/llm-orchestration/hooks/yolo-mode-post-execution.hook.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.d.ts +2 -0
- package/backend/dist/src/llm-orchestration/llm-orchestration.interfaces.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js +0 -2
- package/backend/dist/src/llm-orchestration/llm-orchestration.module.js.map +1 -1
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.d.ts +8 -1
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js +237 -194
- package/backend/dist/src/llm-orchestration/llm-turn-processor.service.js.map +1 -1
- package/backend/dist/src/llm-orchestration/turn-execution-plan.d.ts +18 -0
- package/backend/dist/src/llm-orchestration/turn-execution-plan.js +53 -0
- package/backend/dist/src/llm-orchestration/turn-execution-plan.js.map +1 -0
- package/backend/dist/src/llm-provider/ollama-llm.provider.d.ts +1 -0
- package/backend/dist/src/llm-provider/ollama-llm.provider.js +21 -5
- package/backend/dist/src/llm-provider/ollama-llm.provider.js.map +1 -1
- package/backend/dist/src/llm-provider/openrouter-llm.provider.d.ts +3 -0
- package/backend/dist/src/llm-provider/openrouter-llm.provider.js +8 -0
- package/backend/dist/src/llm-provider/openrouter-llm.provider.js.map +1 -1
- package/backend/dist/src/llm-responses/llm-responses.module.js +0 -4
- package/backend/dist/src/llm-responses/llm-responses.module.js.map +1 -1
- package/backend/dist/src/llm-responses/llm-responses.service.d.ts +12 -4
- package/backend/dist/src/llm-responses/llm-responses.service.js +4 -45
- package/backend/dist/src/llm-responses/llm-responses.service.js.map +1 -1
- package/backend/dist/src/main.js +4 -0
- package/backend/dist/src/main.js.map +1 -1
- package/backend/dist/src/mcp/marketplace/dto/initiate-connect.dto.d.ts +3 -1
- package/backend/dist/src/mcp/marketplace/dto/initiate-connect.dto.js +19 -0
- package/backend/dist/src/mcp/marketplace/dto/initiate-connect.dto.js.map +1 -1
- package/backend/dist/src/mcp/marketplace/marketplace.controller.js +7 -0
- package/backend/dist/src/mcp/marketplace/marketplace.controller.js.map +1 -1
- package/backend/dist/src/mcp/marketplace/marketplace.service.d.ts +9 -0
- package/backend/dist/src/mcp/marketplace/marketplace.service.js +68 -13
- package/backend/dist/src/mcp/marketplace/marketplace.service.js.map +1 -1
- package/backend/dist/src/mcp/marketplace/oauth-provider.d.ts +3 -0
- package/backend/dist/src/mcp/marketplace/oauth-provider.js.map +1 -1
- package/backend/dist/src/mcp/mcp-result.d.ts +12 -0
- package/backend/dist/src/mcp/mcp-result.js +125 -0
- package/backend/dist/src/mcp/mcp-result.js.map +1 -0
- package/backend/dist/src/mcp/mcp.service.d.ts +33 -1
- package/backend/dist/src/mcp/mcp.service.js +364 -79
- package/backend/dist/src/mcp/mcp.service.js.map +1 -1
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.d.ts +3 -1
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.js +11 -1
- package/backend/dist/src/metadata-store/schemas/metadata-schemas.js.map +1 -1
- package/backend/dist/src/seeding/data/shared/project-guidance-section.d.ts +1 -0
- package/backend/dist/src/seeding/data/shared/project-guidance-section.js +22 -0
- package/backend/dist/src/seeding/data/shared/project-guidance-section.js.map +1 -0
- package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.d.ts +1 -1
- package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js +10 -38
- package/backend/dist/src/seeding/data/system-prompts/default_native_tool_agent.js.map +1 -1
- package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.d.ts +1 -1
- package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js +3 -1
- package/backend/dist/src/seeding/data/system-prompts/explore-codebase-agent.js.map +1 -1
- package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.d.ts +1 -1
- package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.js +3 -1
- package/backend/dist/src/seeding/data/system-prompts/general-purpose-agent.js.map +1 -1
- package/backend/dist/src/session-cancellation/session-cancellation.module.d.ts +2 -0
- package/backend/dist/src/{message-bus/message-bus.module.js → session-cancellation/session-cancellation.module.js} +10 -11
- package/backend/dist/src/session-cancellation/session-cancellation.module.js.map +1 -0
- package/backend/dist/src/session-cancellation/session-cancellation.service.d.ts +13 -0
- package/backend/dist/src/session-cancellation/session-cancellation.service.js +75 -0
- package/backend/dist/src/session-cancellation/session-cancellation.service.js.map +1 -0
- package/backend/dist/src/session-inputs/session-inputs.service.js +3 -1
- package/backend/dist/src/session-inputs/session-inputs.service.js.map +1 -1
- package/backend/dist/src/sessions/sessions.module.js +0 -2
- package/backend/dist/src/sessions/sessions.module.js.map +1 -1
- package/backend/dist/src/sessions/sessions.service.d.ts +1 -3
- package/backend/dist/src/sessions/sessions.service.js +1 -5
- package/backend/dist/src/sessions/sessions.service.js.map +1 -1
- package/backend/dist/src/tool-hooks/hook-runtime.d.ts +1 -1
- package/backend/dist/src/tool-hooks/hook-runtime.js +17 -16
- package/backend/dist/src/tool-hooks/hook-runtime.js.map +1 -1
- package/backend/dist/src/utils/spawn-with-kill.d.ts +2 -0
- package/backend/dist/src/utils/spawn-with-kill.js +18 -3
- package/backend/dist/src/utils/spawn-with-kill.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/daemon/dist/index.js +1 -17
- package/package.json +2 -8
- package/platform-cli.js +0 -316
- package/tabtape/extension/dist/build-info.json +3 -3
- package/tabtape/extension/dist/manifest.json +1 -1
- package/tabtape/ui/dist/build-info.json +3 -3
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.d.ts +0 -9
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js +0 -80
- package/backend/dist/src/llm-responses/dto/submit-llm-response.dto.js.map +0 -1
- package/backend/dist/src/llm-responses/llm-responses.controller.d.ts +0 -8
- package/backend/dist/src/llm-responses/llm-responses.controller.js +0 -51
- package/backend/dist/src/llm-responses/llm-responses.controller.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-internal.controller.d.ts +0 -12
- package/backend/dist/src/mcp-server/mcp-internal.controller.js +0 -50
- package/backend/dist/src/mcp-server/mcp-internal.controller.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.bootstrap.d.ts +0 -2
- package/backend/dist/src/mcp-server/mcp-server.bootstrap.js +0 -166
- package/backend/dist/src/mcp-server/mcp-server.bootstrap.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.constants.d.ts +0 -8
- package/backend/dist/src/mcp-server/mcp-server.constants.js +0 -12
- package/backend/dist/src/mcp-server/mcp-server.constants.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.controller.d.ts +0 -19
- package/backend/dist/src/mcp-server/mcp-server.controller.js +0 -72
- package/backend/dist/src/mcp-server/mcp-server.controller.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.module.d.ts +0 -2
- package/backend/dist/src/mcp-server/mcp-server.module.js +0 -29
- package/backend/dist/src/mcp-server/mcp-server.module.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.process.service.d.ts +0 -23
- package/backend/dist/src/mcp-server/mcp-server.process.service.js +0 -130
- package/backend/dist/src/mcp-server/mcp-server.process.service.js.map +0 -1
- package/backend/dist/src/mcp-server/mcp-server.service.d.ts +0 -34
- package/backend/dist/src/mcp-server/mcp-server.service.js +0 -260
- package/backend/dist/src/mcp-server/mcp-server.service.js.map +0 -1
- package/backend/dist/src/message-bus/dto/submit-message.dto.d.ts +0 -4
- package/backend/dist/src/message-bus/dto/submit-message.dto.js +0 -22
- package/backend/dist/src/message-bus/dto/submit-message.dto.js.map +0 -1
- package/backend/dist/src/message-bus/message-bus.controller.d.ts +0 -13
- package/backend/dist/src/message-bus/message-bus.controller.js +0 -50
- package/backend/dist/src/message-bus/message-bus.controller.js.map +0 -1
- package/backend/dist/src/message-bus/message-bus.module.d.ts +0 -2
- package/backend/dist/src/message-bus/message-bus.module.js.map +0 -1
- package/backend/dist/src/message-bus/message-bus.service.d.ts +0 -7
- package/backend/dist/src/message-bus/message-bus.service.js +0 -32
- package/backend/dist/src/message-bus/message-bus.service.js.map +0 -1
- package/backend/dist/src/visual-editor/visual-editor.controller.d.ts +0 -14
- package/backend/dist/src/visual-editor/visual-editor.controller.js +0 -101
- package/backend/dist/src/visual-editor/visual-editor.controller.js.map +0 -1
- package/backend/dist/src/visual-editor/visual-editor.dto.d.ts +0 -5
- package/backend/dist/src/visual-editor/visual-editor.dto.js +0 -32
- package/backend/dist/src/visual-editor/visual-editor.dto.js.map +0 -1
- package/backend/dist/src/visual-editor/visual-editor.module.d.ts +0 -2
- package/backend/dist/src/visual-editor/visual-editor.module.js +0 -24
- package/backend/dist/src/visual-editor/visual-editor.module.js.map +0 -1
- package/daemon/dist/mcp-gateway.js +0 -401
- package/daemon/dist/mcp-gateway.spec.js +0 -295
- package/visual-editor-proxy/client/dist/main.js +0 -89
- package/visual-editor-proxy/client/tsconfig.json +0 -14
- package/visual-editor-proxy/dist/client/src/inspector.d.ts +0 -9
- package/visual-editor-proxy/dist/client/src/inspector.js +0 -96
- package/visual-editor-proxy/dist/client/src/inspector.js.map +0 -1
- package/visual-editor-proxy/dist/client/src/main.d.ts +0 -6
- package/visual-editor-proxy/dist/client/src/main.js +0 -108
- package/visual-editor-proxy/dist/client/src/main.js.map +0 -1
- package/visual-editor-proxy/dist/client/src/ui.d.ts +0 -6
- package/visual-editor-proxy/dist/client/src/ui.js +0 -153
- package/visual-editor-proxy/dist/client/src/ui.js.map +0 -1
- package/visual-editor-proxy/dist/src/main.d.ts +0 -1
- package/visual-editor-proxy/dist/src/main.js +0 -61
- package/visual-editor-proxy/dist/src/main.js.map +0 -1
- package/visual-editor-proxy/dist/tsconfig.tsbuildinfo +0 -1
- package/visual-editor-proxy/package.json +0 -21
- package/visual-editor-proxy/tsconfig.json +0 -21
|
@@ -21,8 +21,18 @@ const mcp_tools_store_1 = require("./mcp-tools.store");
|
|
|
21
21
|
const index_js_1 = require("@modelcontextprotocol/sdk/client/index.js");
|
|
22
22
|
const stdio_js_1 = require("@modelcontextprotocol/sdk/client/stdio.js");
|
|
23
23
|
const streamableHttp_js_1 = require("@modelcontextprotocol/sdk/client/streamableHttp.js");
|
|
24
|
+
const sse_js_1 = require("@modelcontextprotocol/sdk/client/sse.js");
|
|
25
|
+
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
24
26
|
const auth_js_1 = require("@modelcontextprotocol/sdk/client/auth.js");
|
|
25
27
|
const events_gateway_1 = require("../events/events.gateway");
|
|
28
|
+
const path = require("path");
|
|
29
|
+
const mcp_result_1 = require("./mcp-result");
|
|
30
|
+
function getProjectRoot() {
|
|
31
|
+
return process.env.REPOBURG_PROJECT_PATH || process.cwd();
|
|
32
|
+
}
|
|
33
|
+
function isRemoteTransport(type) {
|
|
34
|
+
return type === 'streamable_http' || type === 'sse';
|
|
35
|
+
}
|
|
26
36
|
class ConfigBackedOAuthProvider {
|
|
27
37
|
constructor(config, onSaveTokens) {
|
|
28
38
|
this.config = config;
|
|
@@ -78,63 +88,217 @@ let McpService = McpService_1 = class McpService {
|
|
|
78
88
|
this.eventsGateway = eventsGateway;
|
|
79
89
|
this.logger = new common_1.Logger(McpService_1.name);
|
|
80
90
|
this.activeClients = new Map();
|
|
91
|
+
this.connecting = new Map();
|
|
92
|
+
this.knownServers = new Set();
|
|
93
|
+
this.closingServers = new Set();
|
|
94
|
+
this.reconnectTimers = new Map();
|
|
95
|
+
this.reconnectAttempts = new Map();
|
|
96
|
+
this.initialConnections = Promise.resolve();
|
|
97
|
+
this.destroyed = false;
|
|
81
98
|
this.refreshInterval = null;
|
|
82
99
|
}
|
|
83
100
|
async onModuleInit() {
|
|
84
101
|
this.logger.log('Initializing MCP connections...');
|
|
85
|
-
const configs = await this.mcpConfigsStore.find(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
102
|
+
const configs = await this.mcpConfigsStore.find();
|
|
103
|
+
for (const config of configs)
|
|
104
|
+
this.knownServers.add(config.server_name);
|
|
105
|
+
const active = configs.filter((c) => c.is_active);
|
|
106
|
+
if (active.length === 0) {
|
|
89
107
|
this.logger.warn('No active MCP configurations found. MCP tools will be unavailable.');
|
|
90
108
|
}
|
|
91
109
|
else {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
110
|
+
this.initialConnections = Promise.allSettled(active.map((config) => this.connectToServer(config))).then(() => {
|
|
111
|
+
this.logger.log(`MCP startup: ${this.activeClients.size}/${active.length} server(s) connected.`);
|
|
112
|
+
});
|
|
95
113
|
}
|
|
96
114
|
this.refreshInterval = setInterval(() => this.proactiveTokenRefresh(), McpService_1.REFRESH_CHECK_INTERVAL_MS);
|
|
115
|
+
this.refreshInterval.unref?.();
|
|
116
|
+
}
|
|
117
|
+
whenReady() {
|
|
118
|
+
return this.initialConnections;
|
|
97
119
|
}
|
|
98
120
|
async onModuleDestroy() {
|
|
99
121
|
this.logger.log('Closing all active MCP connections...');
|
|
122
|
+
this.destroyed = true;
|
|
100
123
|
if (this.refreshInterval) {
|
|
101
124
|
clearInterval(this.refreshInterval);
|
|
102
125
|
this.refreshInterval = null;
|
|
103
126
|
}
|
|
127
|
+
for (const timer of this.reconnectTimers.values())
|
|
128
|
+
clearTimeout(timer);
|
|
129
|
+
this.reconnectTimers.clear();
|
|
104
130
|
await Promise.all(Array.from(this.activeClients.keys()).map((serverName) => this.disconnectFromServer(serverName)));
|
|
105
131
|
}
|
|
132
|
+
isConnected(serverName) {
|
|
133
|
+
return this.activeClients.has(serverName);
|
|
134
|
+
}
|
|
106
135
|
async connectToServer(config) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
if (config.transport_type === 'streamable_http') {
|
|
112
|
-
await this.connectToRemoteServer(config);
|
|
136
|
+
const serverName = config.server_name;
|
|
137
|
+
this.knownServers.add(serverName);
|
|
138
|
+
if (this.activeClients.has(serverName)) {
|
|
139
|
+
this.logger.log(`Already connected to ${serverName}. Skipping.`);
|
|
113
140
|
return;
|
|
114
141
|
}
|
|
115
|
-
|
|
142
|
+
const pending = this.connecting.get(serverName);
|
|
143
|
+
if (pending)
|
|
144
|
+
return pending;
|
|
145
|
+
const attempt = (async () => {
|
|
146
|
+
try {
|
|
147
|
+
if (isRemoteTransport(config.transport_type)) {
|
|
148
|
+
await this.connectToRemoteServer(config);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
await this.connectToStdioServer(config);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
catch (e) {
|
|
155
|
+
this.logger.error(`Failed to connect to MCP server "${serverName}": ${e?.message ?? e}`);
|
|
156
|
+
}
|
|
157
|
+
})().finally(() => {
|
|
158
|
+
this.connecting.delete(serverName);
|
|
159
|
+
});
|
|
160
|
+
this.connecting.set(serverName, attempt);
|
|
161
|
+
return attempt;
|
|
116
162
|
}
|
|
117
163
|
async connectToStdioServer(config) {
|
|
118
|
-
const { server_name
|
|
164
|
+
const { server_name } = config;
|
|
165
|
+
if (!config.command) {
|
|
166
|
+
this.logger.error(`Cannot start MCP server "${server_name}": no command configured.`);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
119
169
|
this.logger.log(`Attempting to connect to MCP server: ${server_name}`);
|
|
170
|
+
const transport = new stdio_js_1.StdioClientTransport({
|
|
171
|
+
command: (0, mcp_result_1.expandEnvVars)(config.command),
|
|
172
|
+
args: (config.args ?? []).map((arg) => (0, mcp_result_1.expandEnvVars)(String(arg))),
|
|
173
|
+
env: (0, mcp_result_1.expandEnvRecord)(config.env),
|
|
174
|
+
cwd: getProjectRoot(),
|
|
175
|
+
});
|
|
120
176
|
try {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
177
|
+
await this.startClient(config, transport);
|
|
178
|
+
}
|
|
179
|
+
catch (e) {
|
|
180
|
+
this.logger.error(`Failed to connect to MCP server "${server_name}": ${e.message}`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
async startClient(config, transport) {
|
|
184
|
+
const serverName = config.server_name;
|
|
185
|
+
const client = new index_js_1.Client({
|
|
186
|
+
name: `repoburg-backend-${serverName}`,
|
|
187
|
+
version: '1.0.0',
|
|
188
|
+
});
|
|
189
|
+
client.onerror = (error) => {
|
|
190
|
+
this.logger.warn(`MCP server "${serverName}" error: ${error?.message}`);
|
|
191
|
+
};
|
|
192
|
+
try {
|
|
193
|
+
await client.connect(transport, {
|
|
194
|
+
timeout: McpService_1.CONNECT_TIMEOUT_MS,
|
|
195
|
+
});
|
|
196
|
+
const tools = await this.listAllTools(client);
|
|
197
|
+
this.logger.log(`Connected to ${serverName}. Discovered ${tools.length} tools.`);
|
|
198
|
+
this.activeClients.set(serverName, client);
|
|
199
|
+
this.reconnectAttempts.delete(serverName);
|
|
200
|
+
client.onclose = () => this.handleClientClosed(serverName, client);
|
|
201
|
+
client.setNotificationHandler(types_js_1.ToolListChangedNotificationSchema, async () => {
|
|
202
|
+
try {
|
|
203
|
+
const updated = await this.listAllTools(client);
|
|
204
|
+
this.logger.log(`Tool list of "${serverName}" changed: ${updated.length} tools.`);
|
|
205
|
+
await this.syncTools(serverName, updated);
|
|
206
|
+
}
|
|
207
|
+
catch (e) {
|
|
208
|
+
this.logger.warn(`Could not refresh the tool list of "${serverName}": ${e.message}`);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
await this.syncTools(serverName, tools);
|
|
212
|
+
}
|
|
213
|
+
catch (e) {
|
|
214
|
+
if (this.activeClients.get(serverName) === client) {
|
|
215
|
+
this.activeClients.delete(serverName);
|
|
216
|
+
}
|
|
217
|
+
client.onclose = undefined;
|
|
218
|
+
await client.close().catch(() => undefined);
|
|
219
|
+
throw e;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async listAllTools(client) {
|
|
223
|
+
const tools = [];
|
|
224
|
+
let cursor;
|
|
225
|
+
for (let page = 0; page < 50; page++) {
|
|
226
|
+
const result = await client.listTools(cursor ? { cursor } : undefined, {
|
|
227
|
+
timeout: McpService_1.CONNECT_TIMEOUT_MS,
|
|
125
228
|
});
|
|
126
|
-
|
|
127
|
-
const toolsResult = await client.listTools();
|
|
128
|
-
if (!toolsResult || !toolsResult.tools) {
|
|
229
|
+
if (!result || !Array.isArray(result.tools)) {
|
|
129
230
|
throw new Error('Invalid or empty tool list received from server.');
|
|
130
231
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
232
|
+
tools.push(...result.tools);
|
|
233
|
+
cursor = result.nextCursor;
|
|
234
|
+
if (!cursor)
|
|
235
|
+
break;
|
|
134
236
|
}
|
|
135
|
-
|
|
136
|
-
|
|
237
|
+
return tools;
|
|
238
|
+
}
|
|
239
|
+
handleClientClosed(serverName, client) {
|
|
240
|
+
if (this.activeClients.get(serverName) !== client)
|
|
241
|
+
return;
|
|
242
|
+
this.activeClients.delete(serverName);
|
|
243
|
+
if (this.destroyed || this.closingServers.has(serverName))
|
|
244
|
+
return;
|
|
245
|
+
this.logger.warn(`MCP server "${serverName}" disconnected unexpectedly.`);
|
|
246
|
+
this.scheduleReconnect(serverName);
|
|
247
|
+
}
|
|
248
|
+
scheduleReconnect(serverName) {
|
|
249
|
+
if (this.destroyed || this.reconnectTimers.has(serverName))
|
|
250
|
+
return;
|
|
251
|
+
const attempt = (this.reconnectAttempts.get(serverName) ?? 0) + 1;
|
|
252
|
+
if (attempt > McpService_1.MAX_RECONNECT_ATTEMPTS) {
|
|
253
|
+
this.logger.error(`Giving up reconnecting to "${serverName}" after ${attempt - 1} attempts; it reconnects on its next tool call.`);
|
|
254
|
+
this.reconnectAttempts.delete(serverName);
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
this.reconnectAttempts.set(serverName, attempt);
|
|
258
|
+
const delay = Math.min(McpService_1.RECONNECT_BASE_DELAY_MS * 2 ** (attempt - 1), 30_000);
|
|
259
|
+
this.logger.log(`Reconnecting to "${serverName}" in ${delay}ms (attempt ${attempt}).`);
|
|
260
|
+
const timer = setTimeout(() => {
|
|
261
|
+
this.reconnectTimers.delete(serverName);
|
|
262
|
+
void this.reconnect(serverName);
|
|
263
|
+
}, delay);
|
|
264
|
+
timer.unref?.();
|
|
265
|
+
this.reconnectTimers.set(serverName, timer);
|
|
266
|
+
}
|
|
267
|
+
async reconnect(serverName) {
|
|
268
|
+
if (this.destroyed || this.activeClients.has(serverName))
|
|
269
|
+
return;
|
|
270
|
+
const config = await this.mcpConfigsStore
|
|
271
|
+
.findOneBy({ server_name: serverName })
|
|
272
|
+
.catch(() => null);
|
|
273
|
+
if (!config || !config.is_active) {
|
|
274
|
+
this.reconnectAttempts.delete(serverName);
|
|
275
|
+
return;
|
|
276
|
+
}
|
|
277
|
+
await this.connectToServer(config);
|
|
278
|
+
if (!this.activeClients.has(serverName))
|
|
279
|
+
this.scheduleReconnect(serverName);
|
|
280
|
+
}
|
|
281
|
+
async getClient(serverName) {
|
|
282
|
+
const existing = this.activeClients.get(serverName);
|
|
283
|
+
if (existing)
|
|
284
|
+
return existing;
|
|
285
|
+
const pending = this.connecting.get(serverName);
|
|
286
|
+
if (pending) {
|
|
287
|
+
await pending;
|
|
288
|
+
return this.activeClients.get(serverName);
|
|
289
|
+
}
|
|
290
|
+
const config = await this.mcpConfigsStore
|
|
291
|
+
.findOneBy({ server_name: serverName })
|
|
292
|
+
.catch(() => null);
|
|
293
|
+
if (!config || !config.is_active)
|
|
294
|
+
return undefined;
|
|
295
|
+
const timer = this.reconnectTimers.get(serverName);
|
|
296
|
+
if (timer) {
|
|
297
|
+
clearTimeout(timer);
|
|
298
|
+
this.reconnectTimers.delete(serverName);
|
|
137
299
|
}
|
|
300
|
+
await this.connectToServer(config);
|
|
301
|
+
return this.activeClients.get(serverName);
|
|
138
302
|
}
|
|
139
303
|
async connectToRemoteServer(config) {
|
|
140
304
|
const { server_name, server_url } = config;
|
|
@@ -173,6 +337,7 @@ let McpService = McpService_1 = class McpService {
|
|
|
173
337
|
}
|
|
174
338
|
else {
|
|
175
339
|
this.logger.error(`Failed to connect to remote MCP server "${server_name}": ${e.message}`);
|
|
340
|
+
this.scheduleReconnect(server_name);
|
|
176
341
|
}
|
|
177
342
|
}
|
|
178
343
|
}
|
|
@@ -194,27 +359,34 @@ let McpService = McpService_1 = class McpService {
|
|
|
194
359
|
this.logger.log(`Persisted refreshed tokens for "${serverName}" to metadata store.`);
|
|
195
360
|
}
|
|
196
361
|
async establishRemoteConnection(config) {
|
|
197
|
-
const { server_name
|
|
362
|
+
const { server_name } = config;
|
|
363
|
+
const serverUrl = new URL((0, mcp_result_1.expandEnvVars)(config.server_url));
|
|
198
364
|
const saveCallback = async (tokens) => {
|
|
199
365
|
await this.persistTokens(server_name, tokens);
|
|
200
366
|
};
|
|
201
|
-
const
|
|
202
|
-
? new
|
|
203
|
-
|
|
367
|
+
const authProvider = config.access_token
|
|
368
|
+
? new ConfigBackedOAuthProvider(config, saveCallback)
|
|
369
|
+
: undefined;
|
|
370
|
+
const headers = (0, mcp_result_1.expandEnvRecord)(config.headers);
|
|
371
|
+
const requestInit = Object.keys(headers).length > 0 ? { headers } : undefined;
|
|
372
|
+
const transport = config.transport_type === 'sse'
|
|
373
|
+
? new sse_js_1.SSEClientTransport(serverUrl, {
|
|
374
|
+
authProvider,
|
|
375
|
+
requestInit,
|
|
376
|
+
eventSourceInit: requestInit
|
|
377
|
+
? {
|
|
378
|
+
fetch: (url, init) => fetch(url, {
|
|
379
|
+
...init,
|
|
380
|
+
headers: { ...init?.headers, ...headers },
|
|
381
|
+
}),
|
|
382
|
+
}
|
|
383
|
+
: undefined,
|
|
204
384
|
})
|
|
205
|
-
: new streamableHttp_js_1.StreamableHTTPClientTransport(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
await client.connect(transport);
|
|
211
|
-
const toolsResult = await client.listTools();
|
|
212
|
-
if (!toolsResult || !toolsResult.tools) {
|
|
213
|
-
throw new Error('Invalid or empty tool list received from remote server.');
|
|
214
|
-
}
|
|
215
|
-
this.logger.log(`Connected to remote ${server_name}. Discovered ${toolsResult.tools.length} tools.`);
|
|
216
|
-
this.activeClients.set(server_name, client);
|
|
217
|
-
await this.syncTools(server_name, toolsResult.tools);
|
|
385
|
+
: new streamableHttp_js_1.StreamableHTTPClientTransport(serverUrl, {
|
|
386
|
+
authProvider,
|
|
387
|
+
requestInit,
|
|
388
|
+
});
|
|
389
|
+
await this.startClient(config, transport);
|
|
218
390
|
}
|
|
219
391
|
async refreshTokenForConfig(config) {
|
|
220
392
|
if (!config.server_url || !config.refresh_token) {
|
|
@@ -243,12 +415,7 @@ let McpService = McpService_1 = class McpService {
|
|
|
243
415
|
const now = Date.now();
|
|
244
416
|
const refreshThreshold = new Date(now + McpService_1.REFRESH_WINDOW_MS);
|
|
245
417
|
try {
|
|
246
|
-
const configs = await this.mcpConfigsStore.find({
|
|
247
|
-
where: {
|
|
248
|
-
is_active: true,
|
|
249
|
-
transport_type: 'streamable_http',
|
|
250
|
-
},
|
|
251
|
-
});
|
|
418
|
+
const configs = (await this.mcpConfigsStore.find({ where: { is_active: true } })).filter((c) => isRemoteTransport(c.transport_type));
|
|
252
419
|
const refreshable = configs.filter((c) => c.refresh_token &&
|
|
253
420
|
c.token_expires_at &&
|
|
254
421
|
c.token_expires_at.getTime() < refreshThreshold.getTime());
|
|
@@ -270,16 +437,28 @@ let McpService = McpService_1 = class McpService {
|
|
|
270
437
|
}
|
|
271
438
|
}
|
|
272
439
|
async disconnectFromServer(serverName) {
|
|
440
|
+
const timer = this.reconnectTimers.get(serverName);
|
|
441
|
+
if (timer) {
|
|
442
|
+
clearTimeout(timer);
|
|
443
|
+
this.reconnectTimers.delete(serverName);
|
|
444
|
+
}
|
|
445
|
+
this.reconnectAttempts.delete(serverName);
|
|
273
446
|
const client = this.activeClients.get(serverName);
|
|
274
447
|
if (client) {
|
|
448
|
+
this.closingServers.add(serverName);
|
|
275
449
|
try {
|
|
276
450
|
await client.close();
|
|
277
|
-
this.activeClients.delete(serverName);
|
|
278
451
|
this.logger.log(`Disconnected from ${serverName}`);
|
|
279
452
|
}
|
|
280
453
|
catch (e) {
|
|
281
454
|
this.logger.error(`Error disconnecting from ${serverName}: ${e.message}`);
|
|
282
455
|
}
|
|
456
|
+
finally {
|
|
457
|
+
if (this.activeClients.get(serverName) === client) {
|
|
458
|
+
this.activeClients.delete(serverName);
|
|
459
|
+
}
|
|
460
|
+
this.closingServers.delete(serverName);
|
|
461
|
+
}
|
|
283
462
|
}
|
|
284
463
|
}
|
|
285
464
|
async syncTools(serverName, tools) {
|
|
@@ -309,29 +488,86 @@ let McpService = McpService_1 = class McpService {
|
|
|
309
488
|
catch (e) {
|
|
310
489
|
throw new common_1.BadRequestException('Invalid JSON format.');
|
|
311
490
|
}
|
|
312
|
-
const
|
|
313
|
-
|
|
491
|
+
const servers = parsedConfig &&
|
|
492
|
+
typeof parsedConfig === 'object' &&
|
|
493
|
+
parsedConfig.mcpServers &&
|
|
494
|
+
typeof parsedConfig.mcpServers === 'object'
|
|
495
|
+
? parsedConfig.mcpServers
|
|
496
|
+
: parsedConfig;
|
|
497
|
+
if (!servers || typeof servers !== 'object' || Array.isArray(servers)) {
|
|
314
498
|
throw new common_1.BadRequestException('JSON must have a root key as the server name.');
|
|
315
499
|
}
|
|
316
|
-
const
|
|
317
|
-
if (
|
|
318
|
-
throw new common_1.BadRequestException('
|
|
500
|
+
const names = Object.keys(servers);
|
|
501
|
+
if (names.length === 0) {
|
|
502
|
+
throw new common_1.BadRequestException('JSON must have a root key as the server name.');
|
|
319
503
|
}
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
504
|
+
const drafts = names.map((name) => this.parseServerConfig(name, servers[name]));
|
|
505
|
+
for (const draft of drafts) {
|
|
506
|
+
const existingConfig = await this.mcpConfigsStore.findOneBy({
|
|
507
|
+
server_name: draft.server_name,
|
|
508
|
+
});
|
|
509
|
+
if (existingConfig) {
|
|
510
|
+
throw new common_1.BadRequestException(`A configuration for "${draft.server_name}" already exists.`);
|
|
511
|
+
}
|
|
325
512
|
}
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
513
|
+
const saved = [];
|
|
514
|
+
for (const draft of drafts) {
|
|
515
|
+
const savedConfig = await this.mcpConfigsStore.create(draft);
|
|
516
|
+
this.knownServers.add(savedConfig.server_name);
|
|
517
|
+
saved.push(savedConfig);
|
|
518
|
+
}
|
|
519
|
+
await Promise.all(saved.map((config) => this.connectToServer(config)));
|
|
520
|
+
return saved[0];
|
|
521
|
+
}
|
|
522
|
+
parseServerConfig(name, data) {
|
|
523
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9_-]*$/.test(name) || name.includes('__')) {
|
|
524
|
+
throw new common_1.BadRequestException(`Invalid server name "${name}": use letters, digits, "-" or "_" (no "__").`);
|
|
525
|
+
}
|
|
526
|
+
if (!data || typeof data !== 'object') {
|
|
527
|
+
throw new common_1.BadRequestException(`Configuration for "${name}" must be an object.`);
|
|
528
|
+
}
|
|
529
|
+
const timeout = data.timeout === undefined || data.timeout === null
|
|
530
|
+
? null
|
|
531
|
+
: Number(data.timeout);
|
|
532
|
+
if (timeout !== null && (!Number.isInteger(timeout) || timeout <= 0)) {
|
|
533
|
+
throw new common_1.BadRequestException(`"timeout" of "${name}" must be a positive number of milliseconds.`);
|
|
534
|
+
}
|
|
535
|
+
const type = typeof data.type === 'string' ? data.type.toLowerCase() : '';
|
|
536
|
+
if (data.url || ['http', 'streamable_http', 'sse'].includes(type)) {
|
|
537
|
+
if (typeof data.url !== 'string' || !data.url) {
|
|
538
|
+
throw new common_1.BadRequestException(`Remote server "${name}" needs a "url".`);
|
|
539
|
+
}
|
|
540
|
+
if (type && !['http', 'streamable_http', 'sse'].includes(type)) {
|
|
541
|
+
throw new common_1.BadRequestException(`Unknown transport type "${data.type}" for "${name}" (use "http" or "sse").`);
|
|
542
|
+
}
|
|
543
|
+
if (data.headers !== undefined &&
|
|
544
|
+
(typeof data.headers !== 'object' || Array.isArray(data.headers))) {
|
|
545
|
+
throw new common_1.BadRequestException(`"headers" of "${name}" must be an object.`);
|
|
546
|
+
}
|
|
547
|
+
return {
|
|
548
|
+
server_name: name,
|
|
549
|
+
transport_type: type === 'sse' ? 'sse' : 'streamable_http',
|
|
550
|
+
server_url: data.url,
|
|
551
|
+
headers: data.headers ?? null,
|
|
552
|
+
timeout_ms: timeout,
|
|
553
|
+
is_active: true,
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
if (typeof data.command !== 'string' || !data.command) {
|
|
557
|
+
throw new common_1.BadRequestException('Configuration must include "command" (stdio) or "url" (remote) properties.');
|
|
558
|
+
}
|
|
559
|
+
if (data.args !== undefined && !Array.isArray(data.args)) {
|
|
560
|
+
throw new common_1.BadRequestException(`"args" of "${name}" must be an array.`);
|
|
561
|
+
}
|
|
562
|
+
return {
|
|
563
|
+
server_name: name,
|
|
564
|
+
transport_type: 'stdio',
|
|
565
|
+
command: data.command,
|
|
566
|
+
args: (data.args ?? []).map((arg) => String(arg)),
|
|
567
|
+
env: data.env || {},
|
|
568
|
+
timeout_ms: timeout,
|
|
331
569
|
is_active: true,
|
|
332
|
-
}
|
|
333
|
-
await this.connectToServer(savedConfig);
|
|
334
|
-
return savedConfig;
|
|
570
|
+
};
|
|
335
571
|
}
|
|
336
572
|
async updateMcpConfigStatus(serverName, isActive) {
|
|
337
573
|
const config = await this.mcpConfigsStore.findOneBy({
|
|
@@ -360,6 +596,7 @@ let McpService = McpService_1 = class McpService {
|
|
|
360
596
|
await this.disconnectFromServer(serverName);
|
|
361
597
|
await this.mcpToolsStore.deleteServer(serverName);
|
|
362
598
|
await this.mcpConfigsStore.remove(config);
|
|
599
|
+
this.knownServers.delete(serverName);
|
|
363
600
|
}
|
|
364
601
|
async batchUpdateToolStatus(toolKeys, isActive) {
|
|
365
602
|
if (toolKeys.length === 0) {
|
|
@@ -386,7 +623,7 @@ let McpService = McpService_1 = class McpService {
|
|
|
386
623
|
}
|
|
387
624
|
return configs.map((config) => ({
|
|
388
625
|
server_name: config.server_name,
|
|
389
|
-
description: config.transport_type
|
|
626
|
+
description: isRemoteTransport(config.transport_type) && config.server_url
|
|
390
627
|
? `Remote MCP server at ${config.server_url}`
|
|
391
628
|
: `Tools available from the ${config.server_name} server.`,
|
|
392
629
|
is_active: config.is_active,
|
|
@@ -399,7 +636,7 @@ let McpService = McpService_1 = class McpService {
|
|
|
399
636
|
}));
|
|
400
637
|
}
|
|
401
638
|
computeTokenStatus(config) {
|
|
402
|
-
if (config.transport_type
|
|
639
|
+
if (!isRemoteTransport(config.transport_type))
|
|
403
640
|
return 'none';
|
|
404
641
|
if (!config.access_token)
|
|
405
642
|
return 'none';
|
|
@@ -407,24 +644,68 @@ let McpService = McpService_1 = class McpService {
|
|
|
407
644
|
return 'unknown';
|
|
408
645
|
return config.token_expires_at.getTime() > Date.now() ? 'valid' : 'expired';
|
|
409
646
|
}
|
|
410
|
-
|
|
647
|
+
resolveToolCall(fullName) {
|
|
648
|
+
let best = null;
|
|
649
|
+
const names = new Set([...this.knownServers, ...this.activeClients.keys()]);
|
|
650
|
+
for (const name of names) {
|
|
651
|
+
if (fullName.length > name.length + 2 &&
|
|
652
|
+
fullName.startsWith(`${name}__`) &&
|
|
653
|
+
(!best || name.length > best.length)) {
|
|
654
|
+
best = name;
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
if (!best)
|
|
658
|
+
return null;
|
|
659
|
+
return { serverName: best, toolName: fullName.slice(best.length + 2) };
|
|
660
|
+
}
|
|
661
|
+
async toolTimeoutFor(serverName) {
|
|
662
|
+
const config = await this.mcpConfigsStore
|
|
663
|
+
.findOneBy({ server_name: serverName })
|
|
664
|
+
.catch(() => null);
|
|
665
|
+
if (config?.timeout_ms && config.timeout_ms > 0)
|
|
666
|
+
return config.timeout_ms;
|
|
667
|
+
const fromEnv = Number(process.env.MCP_TOOL_TIMEOUT);
|
|
668
|
+
if (Number.isFinite(fromEnv) && fromEnv > 0)
|
|
669
|
+
return fromEnv;
|
|
670
|
+
return McpService_1.DEFAULT_TOOL_TIMEOUT_MS;
|
|
671
|
+
}
|
|
672
|
+
async callTool(serverName, toolName, args, options) {
|
|
411
673
|
this.logger.log(`Executing MCP tool: ${serverName}.${toolName} with args: ${JSON.stringify(args)}`);
|
|
412
|
-
const client = this.
|
|
674
|
+
const client = await this.getClient(serverName);
|
|
413
675
|
if (!client) {
|
|
414
676
|
const errorMsg = `No active MCP connection found for server: ${serverName}`;
|
|
415
677
|
this.logger.error(errorMsg);
|
|
416
|
-
return {
|
|
678
|
+
return { text: errorMsg, isError: true };
|
|
417
679
|
}
|
|
418
680
|
try {
|
|
419
|
-
const
|
|
420
|
-
const
|
|
421
|
-
|
|
681
|
+
const timeout = await this.toolTimeoutFor(serverName);
|
|
682
|
+
const result = await client.callTool({ name: toolName, arguments: args ?? {} }, undefined, {
|
|
683
|
+
timeout,
|
|
684
|
+
resetTimeoutOnProgress: true,
|
|
685
|
+
onprogress: () => undefined,
|
|
686
|
+
signal: options?.signal,
|
|
687
|
+
});
|
|
688
|
+
const projectRoot = getProjectRoot();
|
|
689
|
+
return await (0, mcp_result_1.formatMcpToolResult)(result, {
|
|
690
|
+
projectRoot,
|
|
691
|
+
outputDir: path.join(projectRoot, '.repoburg', 'mcp-output'),
|
|
692
|
+
label: `${serverName}__${toolName}`,
|
|
693
|
+
});
|
|
422
694
|
}
|
|
423
695
|
catch (e) {
|
|
424
|
-
|
|
425
|
-
|
|
696
|
+
const message = options?.signal?.aborted
|
|
697
|
+
? 'Tool call cancelled by the user.'
|
|
698
|
+
: (e?.message ?? String(e));
|
|
699
|
+
this.logger.error(`Error calling tool ${toolName} on ${serverName}: ${message}`);
|
|
700
|
+
return { text: message, isError: true };
|
|
426
701
|
}
|
|
427
702
|
}
|
|
703
|
+
async executeMcpTool(serverName, toolName, args, options) {
|
|
704
|
+
const outcome = await this.callTool(serverName, toolName, args, options);
|
|
705
|
+
return outcome.isError
|
|
706
|
+
? { stdout: '', stderr: outcome.text, isError: true }
|
|
707
|
+
: { stdout: outcome.text, stderr: '', isError: false };
|
|
708
|
+
}
|
|
428
709
|
async getMcpToolsDefinition() {
|
|
429
710
|
const servers = await this.getMcpServers();
|
|
430
711
|
const activeServers = servers.filter((s) => s.is_active);
|
|
@@ -561,6 +842,10 @@ let McpService = McpService_1 = class McpService {
|
|
|
561
842
|
exports.McpService = McpService;
|
|
562
843
|
McpService.REFRESH_CHECK_INTERVAL_MS = 5 * 60 * 1000;
|
|
563
844
|
McpService.REFRESH_WINDOW_MS = 10 * 60 * 1000;
|
|
845
|
+
McpService.CONNECT_TIMEOUT_MS = 30_000;
|
|
846
|
+
McpService.DEFAULT_TOOL_TIMEOUT_MS = 60_000;
|
|
847
|
+
McpService.MAX_RECONNECT_ATTEMPTS = 5;
|
|
848
|
+
McpService.RECONNECT_BASE_DELAY_MS = 1_000;
|
|
564
849
|
exports.McpService = McpService = McpService_1 = __decorate([
|
|
565
850
|
(0, common_1.Injectable)(),
|
|
566
851
|
__param(0, (0, common_1.Inject)((0, metadata_store_tokens_1.getMetadataStoreToken)('mcp-configs'))),
|