17#define CMCP_VERSION "0.10.0"
22#define CMCP_PROTOCOL_VERSION "2025-11-25"
cmcp_err_t
Library-wide error codes.
@ CMCP_ESCHEMA
Tool input failed schema validation.
@ CMCP_EPARSE
Malformed input (JSON or HTTP).
@ CMCP_EIO
I/O error on transport.
@ CMCP_EUNSUPPORTED
Requested feature not implemented.
@ CMCP_ETRANSPORT
Transport-layer failure.
@ CMCP_EAGAIN
Capacity/rate cap reached; retry later.
@ CMCP_ENOTFOUND
Named primitive (tool/resource/prompt) not registered.
@ CMCP_EPROTOCOL
Peer violated the MCP spec.
@ CMCP_EINVAL
Invalid argument from caller.
@ CMCP_ECANCELLED
Operation cancelled (peer or host).
@ CMCP_ETIMEOUT
Operation timed out.
@ CMCP_ENOMEM
Allocation failure.
@ CMCP_EHANDLER
Handler returned a non-success result.
const char * cmcp_errstr(int err)
Return a human-readable label for a cmcp_err_t value.