asm-mcp-proxy 2.0.0 → 3.0.0

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.
@@ -0,0 +1,66 @@
1
+ /**
2
+ * ASM Consolidated Tools for MCP Proxy
3
+ *
4
+ * Maps the 40 consolidated tool names (same as ASM-MCP local) to gateway API endpoints.
5
+ * Each tool uses an `action` parameter to route to the correct gateway endpoint.
6
+ *
7
+ * This replaces the previous approach of exposing 98+ individual gateway tools,
8
+ * keeping us well under Windsurf's 100 tool limit.
9
+ *
10
+ * Structure (matches ASM-MCP local consolidated-tools.ts):
11
+ * - Core (5): asm_start, asm_query, asm_learn, asm_do, asm_config
12
+ * - Domain (10): asm_generate, asm_validate, asm_git, asm_sandbox, asm_semantic,
13
+ * asm_knowledge, asm_workflow, asm_rls, asm_deploy, asm_figma
14
+ * - AI (2): asm_ollama, asm_health
15
+ * - Orchestrator (7): asm_rules, asm_hooks, asm_catalog, asm_metrics, asm_obsidian, asm_personas, asm_learning
16
+ * - Proactive (1): asm_proactive
17
+ * - Agent (3): asm_agent_start_session, asm_agent_analyze, asm_agent_validate
18
+ * - Framework (1): asm_framework
19
+ * - Snapshot (1): asm_snapshot
20
+ * - MCP Master (1): asm_mcp
21
+ * - Terminal (1): asm_terminal
22
+ * - Gateway (1): asm_gateway
23
+ * - Roo Code (2): asm_write, asm_propose
24
+ * - Intent (1): asm_intent
25
+ * - Execution (1): asm_execution
26
+ * - AI Chat/Plan/Review (3): asm_ai_chat, asm_ai_plan, asm_ai_review
27
+ *
28
+ * Total: ~40 consolidated tools + 9 local tools = ~49 tools (limit: 100)
29
+ */
30
+ export interface ConsolidatedToolDef {
31
+ name: string;
32
+ description: string;
33
+ inputSchema: Record<string, unknown>;
34
+ /** Maps action → gateway tool name or endpoint info */
35
+ actionMap: Record<string, {
36
+ gatewayTool: string;
37
+ mapParams?: (params: any) => any;
38
+ }>;
39
+ /** Default gateway tool if no action map match (forward as-is) */
40
+ defaultGatewayTool?: string;
41
+ }
42
+ export declare const CONSOLIDATED_TOOLS: ConsolidatedToolDef[];
43
+ /**
44
+ * Get all consolidated tool definitions formatted for MCP tools/list
45
+ */
46
+ export declare function getConsolidatedToolDefinitions(): any[];
47
+ /**
48
+ * Find a consolidated tool by name
49
+ */
50
+ export declare function findConsolidatedTool(name: string): ConsolidatedToolDef | undefined;
51
+ /**
52
+ * Resolve a consolidated tool call to the actual gateway tool name and params
53
+ */
54
+ export declare function resolveGatewayCall(toolName: string, args: Record<string, unknown>): {
55
+ gatewayTool: string;
56
+ gatewayArgs: Record<string, unknown>;
57
+ } | null;
58
+ /**
59
+ * Check if a tool name is a consolidated tool
60
+ */
61
+ export declare function isConsolidatedTool(name: string): boolean;
62
+ /**
63
+ * Get count of consolidated tools
64
+ */
65
+ export declare function getConsolidatedToolCount(): number;
66
+ //# sourceMappingURL=consolidated-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consolidated-tools.d.ts","sourceRoot":"","sources":["../src/consolidated-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAAC,CAAC;IACrF,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAiBD,eAAO,MAAM,kBAAkB,EAAE,mBAAmB,EA8tCnD,CAAC;AAEF;;GAEG;AACH,wBAAgB,8BAA8B,IAAI,GAAG,EAAE,CAMtD;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAElF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,IAAI,CAmBtE;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAExD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,MAAM,CAEjD"}