Replies: 1 comment
-
|
You are not using the fastmcp library; you need to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I am currently working on an mcp server and I am using the mcp context to get some context within a tool. Here's my function:
from mcp.server.fastmcp import FastMCP, Context
async def get_summary(document:str, ctx: Context):
info = await ctx.read_resource("uri")
prompt = "some prompt"
response = await ctx.sample(prompt)
I get an error that ctx (Context) has no attribute sample. My mcp server uses cline as a client and llm model is codewise pro. I am not sure how to go about this. I am trying to make my client work on the prompt first and then give the result that I need to work on for the rest of my function. Also is there a way I can access the 'context' documentation so that I can see the methods it has. Thanks
Beta Was this translation helpful? Give feedback.
All reactions