forked from laptou/rust-docs-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Several functions have inconsistent error handling that makes debugging difficult:
Issues Found
-
search_symbolswithout version: Returns generic "HTTP error! status: 404" instead of indicating missing required parameter -
Path format confusion:
get_source_codeandget_type_infouse different path formats:get_type_infoworks with:"prelude/fn.use_signal.html"get_source_codeexpects:"ser/mod.rs"(but still fails)
-
Silent failures:
get_crate_documentationreturns a message but no indication of what went wrong
Suggested Improvements
-
Better error messages:
- "Version parameter required for search_symbols"
- "Invalid path format, expected: ..."
- Specific reason for documentation retrieval failures
-
Consistent path formats:
- Document expected path format for each function
- Provide examples in error messages
-
Parameter validation:
- Validate required parameters before making HTTP requests
- Return clear validation errors
Additional Context
This would significantly improve the developer experience when the MCP functions don't work as expected.
Metadata
Metadata
Assignees
Labels
No labels