-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Support for MCP prompts and resources #544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
How would you want to use this? |
@rm-openai I can at least comment for the resources part. Resources would provide context for chats. I am using https://github.com/JettChenT/wechat-mcp which has a resource that consists of usernames and userId's. without this, I can't search the right user to send a message to. |
@rm-openai I am building a MCP server with tools, prompts and resources for my use case and would like to discover them with the client. I see the current implementation in async with ClientSession(...) as session:
# Initialize the connection
await session.initialize()
# List available prompts
prompts = await session.list_prompts()
# Get a prompt
prompt = await session.get_prompt(
"example-prompt", arguments={"arg1": "value"}
)
# List available resources
resources = await session.list_resources()
# List available tools
tools = await session.list_tools()
# Read a resource
content, mime_type = await session.read_resource("file://some/path")
# Call a tool
result = await session.call_tool("tool-name", arguments={"arg1": "value"}) but code at |
@2anandkr no reason, it just has low adoption afaik. PR welcome if you're up for it! |
Sure! @rm-openai Will implement and create a PR soon! |
Are there any plans to also support prompts and resources from MCP standard? Using tools alone is not that useful but prompts would be a gamechanger.
The text was updated successfully, but these errors were encountered: