File tree Expand file tree Collapse file tree
packages/toolbox-core/src/toolbox_core/mcp_transport Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818from pydantic import BaseModel , ConfigDict , Field
1919
20+ UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
21+
2022
2123class _BaseMCPModel (BaseModel ):
2224 """Base model with common configuration."""
@@ -55,9 +57,6 @@ class ErrorData(_BaseMCPModel):
5557 data : Any | None = None
5658
5759
58- UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
59-
60-
6160class JSONRPCError (_BaseMCPModel ):
6261 jsonrpc : Literal ["2.0" ]
6362 id : str | int
Original file line number Diff line number Diff line change 1717
1818from pydantic import BaseModel , ConfigDict , Field
1919
20+ UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
21+
2022
2123class _BaseMCPModel (BaseModel ):
2224 """Base model with common configuration."""
@@ -55,9 +57,6 @@ class ErrorData(_BaseMCPModel):
5557 data : Any | None = None
5658
5759
58- UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
59-
60-
6160class JSONRPCError (_BaseMCPModel ):
6261 jsonrpc : Literal ["2.0" ]
6362 id : str | int
Original file line number Diff line number Diff line change 1717
1818from pydantic import BaseModel , ConfigDict , Field
1919
20+ UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
21+
2022
2123class _BaseMCPModel (BaseModel ):
2224 """Base model with common configuration."""
@@ -55,9 +57,6 @@ class ErrorData(_BaseMCPModel):
5557 data : Any | None = None
5658
5759
58- UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
59-
60-
6160class JSONRPCError (_BaseMCPModel ):
6261 jsonrpc : Literal ["2.0" ]
6362 id : str | int
Original file line number Diff line number Diff line change 1717
1818from pydantic import BaseModel , ConfigDict , Field
1919
20+ UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
21+
2022
2123class _BaseMCPModel (BaseModel ):
2224 """Base model with common configuration."""
@@ -55,9 +57,6 @@ class ErrorData(_BaseMCPModel):
5557 data : Any | None = None
5658
5759
58- UNSUPPORTED_PROTOCOL_VERSION_ERROR_CODE = - 32022
59-
60-
6160class JSONRPCError (_BaseMCPModel ):
6261 jsonrpc : Literal ["2.0" ]
6362 id : str | int
You can’t perform that action at this time.
0 commit comments