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
No labels