Uses of Class
io.modelcontextprotocol.server.McpSyncServerExchange
Packages that use McpSyncServerExchange
-
Uses of McpSyncServerExchange in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return types with arguments of type McpSyncServerExchangeModifier and TypeMethodDescriptionMcpServerFeatures.SyncToolSpecification.call()Deprecated.McpServerFeatures.SyncToolSpecification.callHandler()Returns the value of thecallHandlerrecord component.McpServerFeatures.SyncCompletionSpecification.completionHandler()Returns the value of thecompletionHandlerrecord component.McpServerFeatures.SyncPromptSpecification.promptHandler()Returns the value of thepromptHandlerrecord component.McpServerFeatures.SyncResourceSpecification.readHandler()Returns the value of thereadHandlerrecord component.Method parameters in io.modelcontextprotocol.server with type arguments of type McpSyncServerExchangeModifier and TypeMethodDescriptionMcpServerFeatures.SyncToolSpecification.Builder.callHandler(BiFunction<McpSyncServerExchange, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Sets the call tool handler function.McpServer.SyncSpecification.rootsChangeHandler(BiConsumer<McpSyncServerExchange, List<McpSchema.Root>> handler) Registers a consumer that will be notified when the list of roots changes.McpServer.SyncSpecification.rootsChangeHandlers(List<BiConsumer<McpSyncServerExchange, List<McpSchema.Root>>> handlers) Registers multiple consumers that will be notified when the list of roots changes.McpServer.SyncSpecification.tool(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> handler) Deprecated.McpServer.SyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, McpSchema.CallToolRequest, McpSchema.CallToolResult> handler) Adds a single tool with its implementation handler to the server.Constructor parameters in io.modelcontextprotocol.server with type arguments of type McpSyncServerExchangeModifierConstructorDescriptionSyncCompletionSpecification(McpSchema.CompleteReference referenceKey, BiFunction<McpSyncServerExchange, McpSchema.CompleteRequest, McpSchema.CompleteResult> completionHandler) Creates an instance of aSyncCompletionSpecificationrecord class.SyncPromptSpecification(McpSchema.Prompt prompt, BiFunction<McpSyncServerExchange, McpSchema.GetPromptRequest, McpSchema.GetPromptResult> promptHandler) Creates an instance of aSyncPromptSpecificationrecord class.SyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpSyncServerExchange, McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult> readHandler) Creates an instance of aSyncResourceSpecificationrecord class.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> call) Deprecated.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> call, BiFunction<McpSyncServerExchange, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Creates an instance of aSyncToolSpecificationrecord class.
McpServer.SyncSpecification.toolCall(McpSchema.Tool, BiFunction)instead for tool calls that require a request object.