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
feat: add access_mcp_resource as native tool and update MCP server instructions
- Refactored accessMcpResourceTool to extend BaseTool class
- Added native tool definition for access_mcp_resource
- Updated MCP servers section to provide different instructions based on protocol
- XML mode: mentions use_mcp_tool wrapper
- Native mode: explains mcp_{server}_{tool} naming pattern
- Registered access_mcp_resource in native tools list
? `When a server is connected, you can use the server's tools via the \`use_mcp_tool\` tool, and access the server's resources via the \`access_mcp_resource\` tool.`
59
+
: `When a server is connected, each server's tools are available as native tools with the naming pattern \`mcp_{server_name}_{tool_name}\`. For example, a tool named 'get_forecast' from a server named 'weather' would be available as \`mcp_weather_get_forecast\`. You can also access server resources using the \`access_mcp_resource\` tool.`
60
+
56
61
constbaseSection=`MCP SERVERS
57
62
58
63
The Model Context Protocol (MCP) enables communication between the system and MCP servers that provide additional tools and resources to extend your capabilities. MCP servers can be one of two types:
@@ -62,7 +67,7 @@ The Model Context Protocol (MCP) enables communication between the system and MC
62
67
63
68
# Connected MCP Servers
64
69
65
-
When a server is connected, you can use the server's tools via the \`use_mcp_tool\` tool, and access the server's resources via the \`access_mcp_resource\` tool.
constACCESS_MCP_RESOURCE_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.
4
+
5
+
Parameters:
6
+
- server_name: (required) The name of the MCP server providing the resource
7
+
- uri: (required) The URI identifying the specific resource to access
0 commit comments