Package org.mockserver.netty.mcp
Interface McpContractTest.JsonRpcExchange
- Enclosing class:
- McpContractTest
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
One JSON-RPC exchange against the target server.
-
Method Summary
Modifier and TypeMethodDescriptionSend a single JSON-RPC message (request or notification) to the target server.
-
Method Details
-
send
McpContractTest.ExchangeResult send(com.fasterxml.jackson.databind.node.ObjectNode message, String sessionId) Send a single JSON-RPC message (request or notification) to the target server.- Parameters:
message- the JSON-RPC message to POSTsessionId- the MCP session id to echo back in theMcp-Session-Idheader, or null- Returns:
- the parsed exchange result (never null)
-