Return invalid params for unknown prompts and missing arguments
Merged
KL
1mo ago+54+54+01234567890123456789-41-41-01234567890123456789
Closes #3669.
Return INVALID_PARAMS (-32602) for unknown prompt names and missing required arguments on both protocol versions, instead of 0 or -32603. Direct MCPServer.get_prompt() and Prompt.render() calls now raise MCPError for these cases; prompt execution failures keep their existing behavior. Update the tests, interaction requirements, and prompt documentation.
Validation: ./scripts/test passes with 6,206 tests and 100% coverage; strict-no-cover and all applicable pre-commit checks pass.
AI Disclaimer
This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.