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
// Generate description with filtered servers and their available resources
27
+
if(availableServers.length===0){
28
+
return`## access_mcp_resource
29
+
Description: Request to access a resource provided by a connected MCP server. Resources represent data sources that can be used as context, such as files, API responses, or system information.
30
+
**Note: No MCP servers are available for the current mode.**
31
+
32
+
This tool allows you to access resources provided by Model Context Protocol (MCP) servers, but the current mode has restrictions that prevent access to all configured MCP servers.
33
+
34
+
Parameters:
35
+
- server_name: (required) The name of the MCP server providing the resource
36
+
- uri: (required) The URI identifying the specific resource to access`
Description: Request to access a resource provided by a connected MCP server. Resources represent data sources that can be used as context, such as files, API responses, or system information.
51
+
52
+
**Available servers for current mode:**
53
+
${serverDescriptions}
54
+
9
55
Parameters:
10
56
- server_name: (required) The name of the MCP server providing the resource
11
57
- uri: (required) The URI identifying the specific resource to access
// Generate description with filtered servers and their available tools
27
+
if(availableServers.length===0){
28
+
return`## use_mcp_tool
29
+
Description: Request to use a tool provided by a connected MCP server.
30
+
**Note: No MCP servers are available for the current mode.**
31
+
32
+
This tool allows you to execute tools provided by Model Context Protocol (MCP) servers, but the current mode has restrictions that prevent access to all configured MCP servers.
33
+
34
+
Parameters:
35
+
- server_name: (required) The name of the MCP server providing the tool
36
+
- tool_name: (required) The name of the tool to execute
37
+
- arguments: (required) A JSON object containing the tool's input parameters`
38
+
}
39
+
40
+
constserverDescriptions=availableServers
41
+
.map((server)=>{
42
+
letavailableTools=server.tools||[]
43
+
44
+
// Filter tools based on mode restrictions (only if explicit restrictions exist)
Description: Request to use a tool provided by a connected MCP server. Each MCP server can provide multiple tools with different capabilities. Tools have defined input schemas that specify required and optional parameters.
72
+
73
+
**Available servers and tools for current mode:**
74
+
${serverDescriptions}
75
+
9
76
Parameters:
10
77
- server_name: (required) The name of the MCP server providing the tool
11
78
- tool_name: (required) The name of the tool to execute
12
79
- arguments: (required) A JSON object containing the tool's input parameters, following the tool's input schema
0 commit comments