php-sdk/tests/Unit/Server/Handler/Request
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kyrian Obikwelu ca18caf29d
[Server] Fix: standardize error handling across handlers with MCP specificatio… (#124)
* fix: standardize error handling across handlers with MCP specification compliance

* Update mcp-elements.md

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>

* docs: clarify error handling behavior for all element types

* docs: remove unnecessary whitespace in mcp-elements.md

* fix: simplify exception signatures to accept simple messages

* refactor: use specific exceptions in examples for better error handling

* feat: throw exceptions from reference provider instead of returning null

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2025-10-30 17:30:58 +01:00
..
CallToolHandlerTest.php [Server] Fix: standardize error handling across handlers with MCP specificatio… (#124) 2025-10-30 17:30:58 +01:00
GetPromptHandlerTest.php [Server] Fix: standardize error handling across handlers with MCP specificatio… (#124) 2025-10-30 17:30:58 +01:00
ListPromptsHandlerTest.php [Server] Reorganize server handlers and transport structure for better organization (#86) 2025-09-29 00:58:04 +02:00
ListResourcesHandlerTest.php [Server] Reorganize server handlers and transport structure for better organization (#86) 2025-09-29 00:58:04 +02:00
ListResourceTemplatesHandlerTest.php Add request handler for resource templates (#89) 2025-10-04 19:43:41 +02:00
ListToolsHandlerTest.php [Server] Reorganize server handlers and transport structure for better organization (#86) 2025-09-29 00:58:04 +02:00
PingHandlerTest.php [Server] Reorganize server handlers and transport structure for better organization (#86) 2025-09-29 00:58:04 +02:00
ReadResourceHandlerTest.php [Server] Fix: standardize error handling across handlers with MCP specificatio… (#124) 2025-10-30 17:30:58 +01:00