table of contents
- Tumbleweed 0.150.0-1.1
- Leap-16.0
| MCP::Constants(3) | User Contributed Perl Documentation | MCP::Constants(3) |
NAME¶
MCP::Constants - Constants for MCP (Model Context Protocol)
SYNOPSIS¶
use MCP::Constants qw(PROTOCOL_VERSION);
DESCRIPTION¶
MCP::Constants provides constants used in MCP (Model Context Protocol).
CONSTANTS¶
MCP::Constants exports the following constants.
HEADER_MISMATCH¶
The error code for a request whose routing headers disagree with its JSON-RPC body.
INSUFFICIENT_SCOPE¶
The error code for a request whose access token lacks a required OAuth scope. This is a local authorization policy rather than a spec-defined code, and lives in the -32000 to -32019 range the specification grandfathers for existing SDK use; -32020 to -32099 is reserved for the specification itself.
INTERNAL_ERROR¶
The error code for a prompt, resource, or tool that died, or returned a promise that was rejected.
INVALID_PARAMS¶
The error code for invalid parameters. Also used for prompts, resources, and tools that were not found.
INVALID_REQUEST¶
The error code for an invalid request.
META_CLIENT_CAPABILITIES¶
The "_meta" key carrying the capabilities of the client making the request.
META_CLIENT_INFO¶
The "_meta" key carrying the name and version of the client making the request.
META_LOG_LEVEL¶
The "_meta" key carrying the minimum log level the client wants to receive for a request.
META_PROTOCOL_VERSION¶
The "_meta" key carrying the protocol version a request is made with.
META_SERVER_INFO¶
The "_meta" key carrying the name and version of the server in a result.
META_SUBSCRIPTION_ID¶
The "_meta" key carrying the subscription a notification belongs to.
METHOD_NOT_FOUND¶
The error code for a method that was not found.
MISSING_CLIENT_CAPABILITY¶
The error code for a request that requires a client capability the client did not declare.
PARSE_ERROR¶
The error code for a parse error.
PROTOCOL_VERSION¶
The version of the Model Context Protocol being used.
SUPPORTED_VERSIONS¶
An array reference with every protocol version the server accepts, newest first.
UNSUPPORTED_PROTOCOL_VERSION¶
The error code for a request made with a protocol version the server does not support.
SEE ALSO¶
MCP, <https://mojolicious.org>, <https://modelcontextprotocol.io>.
| 2026-07-31 | perl v5.44.0 |