@vfarcic/dot-ai 1.0.1 → 1.0.3
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/dist/interfaces/mcp.d.ts
CHANGED
|
@@ -44,10 +44,6 @@ export declare class MCPServer {
|
|
|
44
44
|
* Register all tools with McpServer and REST registry
|
|
45
45
|
*/
|
|
46
46
|
private registerTools;
|
|
47
|
-
/**
|
|
48
|
-
* Register tools from discovered plugins (PRD #343)
|
|
49
|
-
*/
|
|
50
|
-
private registerPluginTools;
|
|
51
47
|
/**
|
|
52
48
|
* Register prompts capability with McpServer
|
|
53
49
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../src/interfaces/mcp.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAUH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAuDtC,OAAO,EAAgB,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,UAAU,GAAG,WAAW,CAAC;IACvC,+DAA+D;IAC/D,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,gBAAgB,CAAa;IACrC,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,U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tD,OAAO,CAAC,YAAY,CAAmB;IACvC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,aAAa,CAA4B;IACjD,OAAO,CAAC,aAAa,CAAC,CAAgB;gBAE1B,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,eAAe;IAiEjD;;OAEG;IACH,gBAAgB,IAAI,aAAa,GAAG,SAAS;IAI7C;;OAEG;IACH,OAAO,CAAC,YAAY;IAmCpB;;OAEG;IACH,OAAO,CAAC,aAAa;IAwKrB;;OAEG;IACH,OAAO,CAAC,eAAe;IAqCvB,OAAO,CAAC,qBAAqB;YAgBf,qBAAqB;IAyBnC,OAAO,CAAC,iBAAiB;IAInB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YASd,kBAAkB;YA+HlB,gBAAgB;IAexB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAgB3B,OAAO,IAAI,OAAO;CAGnB"}
|
package/dist/interfaces/mcp.js
CHANGED
|
@@ -187,8 +187,10 @@ class MCPServer {
|
|
|
187
187
|
this.logger.info(`Processing ${query_1.QUERY_TOOL_NAME} tool request`, { requestId });
|
|
188
188
|
return await (0, query_1.handleQueryTool)(args, this.pluginManager);
|
|
189
189
|
}, 'Intelligence', ['query', 'search', 'discover', 'capabilities', 'cluster']);
|
|
190
|
-
//
|
|
191
|
-
|
|
190
|
+
// NOTE: Plugin tools (kubectl_*, helm_*, shell_exec) are NOT registered as MCP tools.
|
|
191
|
+
// They are internal implementation details used by built-in tools like remediate/query.
|
|
192
|
+
// Plugin tools remain available internally via pluginManager.invokeTool().
|
|
193
|
+
// Only the 7 built-in MCP tools are exposed to clients.
|
|
192
194
|
const builtInTools = [
|
|
193
195
|
recommend_1.RECOMMEND_TOOL_NAME,
|
|
194
196
|
version_1.VERSION_TOOL_NAME,
|
|
@@ -198,55 +200,14 @@ class MCPServer {
|
|
|
198
200
|
project_setup_1.PROJECT_SETUP_TOOL_NAME,
|
|
199
201
|
query_1.QUERY_TOOL_NAME
|
|
200
202
|
];
|
|
201
|
-
|
|
203
|
+
// Log summary of tool registration
|
|
204
|
+
const pluginToolCount = this.pluginManager?.getDiscoveredTools().length || 0;
|
|
205
|
+
this.logger.info('Registered tools with McpServer', {
|
|
202
206
|
builtInTools,
|
|
203
|
-
|
|
204
|
-
|
|
207
|
+
totalRegistered: builtInTools.length,
|
|
208
|
+
pluginToolsAvailableInternally: pluginToolCount,
|
|
205
209
|
});
|
|
206
210
|
}
|
|
207
|
-
/**
|
|
208
|
-
* Register tools from discovered plugins (PRD #343)
|
|
209
|
-
*/
|
|
210
|
-
registerPluginTools() {
|
|
211
|
-
if (!this.pluginManager) {
|
|
212
|
-
return [];
|
|
213
|
-
}
|
|
214
|
-
const tools = this.pluginManager.getDiscoveredTools();
|
|
215
|
-
const registeredTools = [];
|
|
216
|
-
for (const tool of tools) {
|
|
217
|
-
// Create handler that routes to plugin
|
|
218
|
-
const pluginHandler = async (args) => {
|
|
219
|
-
const response = await this.pluginManager.invokeTool(tool.name, args, {}, undefined);
|
|
220
|
-
// Return proper MCP CallToolResult format
|
|
221
|
-
if (response.success) {
|
|
222
|
-
return {
|
|
223
|
-
content: [{
|
|
224
|
-
type: 'text',
|
|
225
|
-
text: JSON.stringify(response.result)
|
|
226
|
-
}]
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
else {
|
|
230
|
-
return {
|
|
231
|
-
content: [{
|
|
232
|
-
type: 'text',
|
|
233
|
-
text: JSON.stringify({ error: response.error?.message || 'Plugin invocation failed' })
|
|
234
|
-
}],
|
|
235
|
-
isError: true
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
this.registerTool(tool.name, tool.description, tool.inputSchema, pluginHandler, 'Plugin', ['plugin', 'kubectl', 'kubernetes']);
|
|
240
|
-
registeredTools.push(tool.name);
|
|
241
|
-
}
|
|
242
|
-
if (registeredTools.length > 0) {
|
|
243
|
-
this.logger.info('Registered plugin tools', {
|
|
244
|
-
tools: registeredTools,
|
|
245
|
-
count: registeredTools.length,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
return registeredTools;
|
|
249
|
-
}
|
|
250
211
|
/**
|
|
251
212
|
* Register prompts capability with McpServer
|
|
252
213
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
|
|
5
5
|
"mcpName": "io.github.vfarcic/dot-ai",
|
|
6
6
|
"main": "dist/index.js",
|