Uses of Class
com.tnsai.mcp.testing.MockMcpServer
Packages that use MockMcpServer
-
Uses of MockMcpServer in com.tnsai.mcp.testing
Methods in com.tnsai.mcp.testing that return MockMcpServerModifier and TypeMethodDescriptionMcpServerTestKit.getServer()Returns the mock MCP server.MockMcpTransport.getServer()Returns the underlying MockMcpServer.MockMcpServer.whenPrompt(String name, com.fasterxml.jackson.databind.JsonNode result) Registers a prompt handler that returns the given result.MockMcpServer.whenResource(String uri, String content) Registers a resource with text content.MockMcpServer.whenTool(String name, Function<Map<String, Object>, com.fasterxml.jackson.databind.JsonNode> handler) Registers a tool handler function.MockMcpServer.whenToolReturns(String name, com.fasterxml.jackson.databind.JsonNode result) Registers a tool that always returns the given result.MockMcpServer.whenToolThrows(String name, int errorCode, String errorMessage) Registers a tool that always throws an error.Constructors in com.tnsai.mcp.testing with parameters of type MockMcpServerModifierConstructorDescriptionMockMcpTransport(MockMcpServer server) Creates a MockMcpTransport backed by the given server.