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()Returns the value of thecallrecord 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 TypeMethodDescriptionMcpServer.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) Adds a single tool with its implementation handler to the server.Constructor parameters in io.modelcontextprotocol.server with type arguments of type McpSyncServerExchangeModifierConstructorDescriptionSyncPromptSpecification(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) Creates an instance of aSyncToolSpecificationrecord class.