McpContext
While PingGateway processes a Model Context Protocol (MCP) exchange, this context provides access to the MCP request from a client application and the responses from an MCP server.
| This feature has Evolving interface stability. It’s subject to change without notice, even in a minor or maintenance release. |
Access the context at ${contexts.mcp}.
Properties
"clientMessageType": enumeration-
One of these types of MCP client messages:
-
MCP_MESSAGE: Standard MCP request message. -
MCP_SSE_OPENING_REQUEST: Request a server-sent events (SSE) stream. -
MCP_SESSION_TERMINATION: Request to terminate the MCP session.
-
"clientPayload": JSON-
JSON-RPC message.
"protocolVersion": string-
The MCP protocol version requested by the client application.
"serverPayload": JSON-
JSON-RPC response payload received from the MCP server.
"serverMessageType": enumeration-
One of these types of MCP server messages:
-
MCP_MESSAGE: Standard MCP response message. -
MCP_SSE_STREAM_INITIALIZATION: Initial response to an SSE opening request.
-
"sessionId": string-
The MCP session identifier for the client application.