Uses of Class
com.tnsai.mcp.client.McpClient.McpException
Packages that use McpClient.McpException
-
Uses of McpClient.McpException in com.tnsai.mcp.client
Methods in com.tnsai.mcp.client that throw McpClient.McpExceptionModifier and TypeMethodDescriptionMcpClient.complete(CompletionRequest request) Requests auto-completion suggestions from the server.McpClient.completePromptArgument(String promptName, String argName, String partialValue) Requests prompt argument completion suggestions.McpClient.completeResourceUri(String partialUri) Requests resource URI completion suggestions.McpClient.createSamplingMessage(SamplingRequest request) Sends a sampling/createMessage request to the server to generate text.com.fasterxml.jackson.databind.JsonNodeMcpClient.executeTool(String toolName, Map<String, Object> arguments) Executes a tool on the server.com.fasterxml.jackson.databind.JsonNodeGets a prompt with the given arguments.voidMcpClient.initialize()Initializes the MCP session with capability exchange.McpClient.listPrompts()Lists available prompts on the server.McpClient.listResources()Lists available resources on the server.McpClient.listResourceTemplates()Lists available resource templates on the server.McpClient.listTools()Lists available tools on the server.McpClient.readResource(String uri) Reads the content of a resource.voidMcpClient.setLogLevel(LogLevel level) Sets the minimum log level on the server.voidMcpClient.subscribeResource(String uri) Subscribes to changes for a resource.voidMcpClient.unsubscribeResource(String uri) Unsubscribes from changes for a resource. -
Uses of McpClient.McpException in com.tnsai.mcp.observability
Methods in com.tnsai.mcp.observability that throw McpClient.McpExceptionModifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeTracingMcpClient.executeTool(String toolName, Map<String, Object> arguments) Executes a tool on the server with tracing and metrics.com.fasterxml.jackson.databind.JsonNodeGets a prompt with the given arguments, with tracing.voidTracingMcpClient.initialize()Initializes the MCP session with tracing.TracingMcpClient.listPrompts()Lists available prompts on the server with tracing.TracingMcpClient.listResources()Lists available resources on the server with tracing.TracingMcpClient.listTools()Lists available tools on the server with tracing.TracingMcpClient.readResource(String uri) Reads a resource from the server with tracing. -
Uses of McpClient.McpException in com.tnsai.mcp.testing
Methods in com.tnsai.mcp.testing that throw McpClient.McpExceptionModifier and TypeMethodDescriptionvoidMcpServerTestKit.assertToolExists(String toolName) Asserts that a tool with the given name exists on the server.voidMcpServerTestKit.assertToolReturns(String toolName, Map<String, Object> args, Predicate<com.fasterxml.jackson.databind.JsonNode> check) Asserts that a tool returns a result matching the given predicate.