You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: services/satellite/src/core/mcp-server-wrapper.ts
+40-9Lines changed: 40 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -92,17 +92,17 @@ export class McpServerWrapper {
92
92
constmetaTools=[
93
93
{
94
94
name: 'discover_mcp_tools',
95
-
description: 'Search for MCP tools using 1-3 keywords only. Examples: "markdown", "github create", "database query". Avoid long descriptions. Use tool name or main function as keywords. Returns tool paths for execute_mcp_tool.',
95
+
description: 'Search for MCP tools using 1-3 keywords only. Examples: "markdown", "github create", "database query". Use "*" to list all available tools (max 20). Avoid long descriptions. Use tool name or main function as keywords. Returns tool paths for execute_mcp_tool.',
96
96
inputSchema: {
97
97
type: 'object',
98
98
properties: {
99
99
query: {
100
100
type: 'string',
101
-
description: 'Short search query with 1-3 keywords (e.g., "markdown", "github", "database postgres"). Avoid full sentences.'
101
+
description: 'Short search query with 1-3 keywords (e.g., "markdown", "github", "database postgres"). Use "*" to list all tools. Avoid full sentences.'
102
102
},
103
103
limit: {
104
104
type: 'number',
105
-
description: 'Maximum number of results to return (default: 10)',
105
+
description: 'Maximum number of results to return (default: 10, max: 20 for wildcard)',
106
106
default: 10
107
107
}
108
108
},
@@ -186,17 +186,39 @@ export class McpServerWrapper {
186
186
thrownewError('Invalid query parameter - must be a non-empty string');
187
187
}
188
188
189
+
// Handle wildcard query "*" - list all tools (max 20)
truncationMessage=`Showing ${wildcardLimit} of ${totalAvailable} available tools. Use specific keywords (e.g., "github", "database", "markdown") to find additional tools not shown here.`;
0 commit comments