Package io.modelcontextprotocol.spec
Class McpSchema.ErrorCodes
java.lang.Object
io.modelcontextprotocol.spec.McpSchema.ErrorCodes
- Enclosing class:
- McpSchema
Standard error codes used in MCP JSON-RPC responses.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intInternal JSON-RPC error.static final intInvalid method parameter(s).static final intThe JSON sent is not a valid Request object.static final intThe method does not exist / is not available.static final intInvalid JSON was received by the server. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PARSE_ERROR
public static final int PARSE_ERRORInvalid JSON was received by the server.- See Also:
-
INVALID_REQUEST
public static final int INVALID_REQUESTThe JSON sent is not a valid Request object.- See Also:
-
METHOD_NOT_FOUND
public static final int METHOD_NOT_FOUNDThe method does not exist / is not available.- See Also:
-
INVALID_PARAMS
public static final int INVALID_PARAMSInvalid method parameter(s).- See Also:
-
INTERNAL_ERROR
public static final int INTERNAL_ERRORInternal JSON-RPC error.- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()
-