-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.
Is your feature request related to a problem? Please describe.
In using the MCPToolset and adding MCP Servers (SSE,STDIO, or HTTPStreamable) for any tool with MCP Resources, there is no way to access those resources that I am aware of. An example is an MCP server to access data from a database. If the data sources are in an MCP Resource and the access method is via a tool, there is no easy way to provide the resource information.
Describe the solution you'd like
When creating an Agent or LLMAgent an input that includes passing in those resources as well as an easy to way access those resources. Looking at the mcp package there is a list_tools() which is being used but there is also a list_resources(). When using the MCPToolset you could potentially just change it to MCPServer that returns the resources, tools, prompts, etc. Then pass in that object to the Agent or LLMAgent constructor.
Describe alternatives you've considered
Getting the resources directly from the mcp package and passing those in as part of the LLMAgent instructions, e.g. f"You are an agent and have access to the following resources in addition to the tools you are provided {resources}. This works but is not as modular or intuative.
Additional context
NA