Error getting prompt diagnose_cluster
Traceback (most recent call last):
...
File ".../mcp/server/mcpserver/server.py", line 1285, in get_prompt
rendered = await prompt.render(arguments, context)
File ".../mcp/server/mcpserver/prompts/base.py", line 160, in render
raise ValueError(f"Missing required arguments: {missing}")
ValueError: Missing required arguments: {'problem'}
handler for 'prompts/get' raised
Initial Checks
Release line
2.x (current stable)
Description
Description
When a prompt is called without a required argument, the request is correctly rejected, but the Python SDK logs the validation error with a full traceback.
To Reproduce
Steps to reproduce the behavior:
Create a prompt with a required argument:
Call
prompts/listand confirm thatproblemis marked as required.Call
prompts/getwithout providing the required argument:{ "method": "prompts/get", "params": { "name": "diagnose_cluster" } }The request is rejected, but the server logs a full traceback:
Example Code
Python & MCP Python SDK