CMSIS-MCP  Version 0.0.0
Embedded MCP server with serial transport
 
Loading...
Searching...
No Matches
Argument types and protocol errors

Discovery schema types, opaque handles and protocol error constants. More...

Macros

#define MCP_PARSE_ERROR   (-32700)
 JSON-RPC parse error: malformed JSON (-32700).
 
#define MCP_INVALID_REQUEST   (-32600)
 JSON-RPC invalid request: malformed envelope (-32600).
 
#define MCP_METHOD_NOT_FOUND   (-32601)
 JSON-RPC method not found (-32601).
 
#define MCP_INVALID_PARAMS   (-32602)
 JSON-RPC invalid parameters: missing, extra or invalid input (-32602).
 
#define MCP_INTERNAL_ERROR   (-32603)
 JSON-RPC internal error: allocation or callback failure (-32603).
 
#define MCP_RESOURCE_NOT_FOUND   (-32002)
 MCP resource not found: unregistered URI (-32002).
 

Enumerations

enum  type { TYPE_STR , TYPE_INT , TYPE_FLOAT , TYPE_BOOL }
 JSON type used in a required argument's discovery schema. More...
 

Description

Discovery schema types, opaque handles and protocol error constants.

Macro Definition Documentation

◆ MCP_INTERNAL_ERROR

#define MCP_INTERNAL_ERROR   (-32603)

JSON-RPC internal error: allocation or callback failure (-32603).

◆ MCP_INVALID_PARAMS

#define MCP_INVALID_PARAMS   (-32602)

JSON-RPC invalid parameters: missing, extra or invalid input (-32602).

◆ MCP_INVALID_REQUEST

#define MCP_INVALID_REQUEST   (-32600)

JSON-RPC invalid request: malformed envelope (-32600).

◆ MCP_METHOD_NOT_FOUND

#define MCP_METHOD_NOT_FOUND   (-32601)

JSON-RPC method not found (-32601).

◆ MCP_PARSE_ERROR

#define MCP_PARSE_ERROR   (-32700)

JSON-RPC parse error: malformed JSON (-32700).

◆ MCP_RESOURCE_NOT_FOUND

#define MCP_RESOURCE_NOT_FOUND   (-32002)

MCP resource not found: unregistered URI (-32002).

Enumeration Type Documentation

◆ type

enum type

JSON type used in a required argument's discovery schema.

Enumerator
TYPE_STR 

JSON string; callback receives decoded text.

TYPE_INT 

Finite integral JSON number; callback receives numeric text.

TYPE_FLOAT 

Finite JSON number; callback receives numeric text.

TYPE_BOOL 

JSON boolean; callback receives "true" or "false".