GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Unknown methods return -32602 Invalid params instead of -32601 Method not found · Issue #3193 · modelcontextprotocol/python-sdk Closed Labels v1Affects the v1.x maintenance lineAffects the v1.x maintenance line DescriptionA server built on this SDK answers every unknown JSON-RPC method with Why it mattersCatalogue scanners probe for optional capabilities and read the error code to decide whether a method is unsupported or genuinely malformed. Smithery, scanning our production server, logged:
ReproductionAgainst any server on this SDK, after {"jsonrpc":"2.0","id":9,"method":"totally/bogus"}Response: {"jsonrpc":"2.0","id":9,"error":{"code":-32602,"message":"Invalid request parameters","data":""}}Same code for CauseIn except Exception as e: # For request validation errors, send a proper JSON-RPC error # response instead of crashing the server logging.warning(f"Failed to validate request: {e}") error_response = JSONRPCError( ... error=ErrorData(code=INVALID_PARAMS, message="Invalid request parameters", data=""), ) The comment is accurate for its original purpose — the union is just doing double duty as a method registry, so "method I do not have" and "parameters I cannot parse" arrive at the same handler. Suggested fixDistinguish the two before building the error: if Happy to open a PR if the approach looks right. Observed on Activity
MetadataMetadataAssigneesLabelsv1Affects the v1.x maintenance lineAffects the v1.x maintenance line TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |