Class McpSchema.ErrorCodes

java.lang.Object
io.modelcontextprotocol.spec.McpSchema.ErrorCodes
Enclosing class:
McpSchema

public static final class McpSchema.ErrorCodes extends Object
Standard error codes used in MCP JSON-RPC responses.
  • Field Details

    • PARSE_ERROR

      public static final int PARSE_ERROR
      Invalid JSON was received by the server.
      See Also:
    • INVALID_REQUEST

      public static final int INVALID_REQUEST
      The JSON sent is not a valid Request object.
      See Also:
    • METHOD_NOT_FOUND

      public static final int METHOD_NOT_FOUND
      The method does not exist / is not available.
      See Also:
    • INVALID_PARAMS

      public static final int INVALID_PARAMS
      Invalid method parameter(s).
      See Also:
    • INTERNAL_ERROR

      public static final int INTERNAL_ERROR
      Internal JSON-RPC error.
      See Also:
  • Constructor Details

    • ErrorCodes

      public ErrorCodes()