fix: replace http code by jsonrpc (#1920)

This commit is contained in:
Marcelo Trylesinski 2026-01-21 18:37:55 +01:00 • committed by GitHub
commit 656f887aff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 13 deletions

View file

@ -191,6 +191,7 @@ from mcp.types.jsonrpc import (
INVALID_REQUEST,
METHOD_NOT_FOUND,
PARSE_ERROR,
REQUEST_TIMEOUT,
URL_ELICITATION_REQUIRED,
ErrorData,
JSONRPCError,
@ -402,6 +403,7 @@ __all__ = [
"INVALID_REQUEST",
"METHOD_NOT_FOUND",
"PARSE_ERROR",
"REQUEST_TIMEOUT",
"URL_ELICITATION_REQUIRED",
"ErrorData",
"JSONRPCError",

View file

@ -42,7 +42,7 @@ URL_ELICITATION_REQUIRED = -32042
# SDK error codes
CONNECTION_CLOSED = -32000
# REQUEST_TIMEOUT = -32001 # the typescript sdk uses this
REQUEST_TIMEOUT = -32001
# Standard JSON-RPC error codes
PARSE_ERROR = -32700