fix: replace http code by jsonrpc (#1920)
This commit is contained in:
parent
213cf993ca
commit
656f887aff
2 changed files with 7 additions and 13 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue