-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
jlowin/fastmcp
#325Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't workingneeds confirmationNeeds confirmation that the PR is actually required or needed.Needs confirmation that the PR is actually required or needed.needs reproneeds additional information to be able to reproduce bugneeds additional information to be able to reproduce bug
Description
Describe the bug
When session.get_prompt(prompt.name) is called the GetPromptResult doesn't return the prompt description
To Reproduce
Steps to reproduce the behavior:
- Create a FastMCP server and add a prompt description
@mcp.prompt(description="This prompt summarizes the brave search data")
def summarize_brave_data() -> str:
return f"ABCABCABCB"
- Create a client and call list_prompts along with get_prompts
prompt_data = await self.session.get_prompt(prompt.name)
print(prompt_data)
- Output:-
INFO Processing request of type GetPromptRequest server.py:534
meta=None description=None messages=[PromptMessage(role='user', content=TextContent(type='text', text='ABCABCABCB', annotations=None))]
Expected behavior
INFO Processing request of type GetPromptRequest server.py:534
meta=None description="This prompt summarizes the brave search data" messages=[PromptMessage(role='user', content=TextContent(type='text', text='ABCABCABCB', annotations=None))]
Screenshots
N/A
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingneeds confirmationNeeds confirmation that the PR is actually required or needed.Needs confirmation that the PR is actually required or needed.needs reproneeds additional information to be able to reproduce bugneeds additional information to be able to reproduce bug