Uses of Class
io.modelcontextprotocol.server.McpAsyncServerExchange
Packages that use McpAsyncServerExchange
-
Uses of McpAsyncServerExchange in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return types with arguments of type McpAsyncServerExchangeModifier and TypeMethodDescriptionBiFunction<McpAsyncServerExchange,Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> McpServerFeatures.AsyncToolSpecification.call()Returns the value of thecallrecord component.BiFunction<McpAsyncServerExchange,McpSchema.GetPromptRequest, reactor.core.publisher.Mono<McpSchema.GetPromptResult>> McpServerFeatures.AsyncPromptSpecification.promptHandler()Returns the value of thepromptHandlerrecord component.BiFunction<McpAsyncServerExchange,McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> McpServerFeatures.AsyncResourceSpecification.readHandler()Returns the value of thereadHandlerrecord component.Method parameters in io.modelcontextprotocol.server with type arguments of type McpAsyncServerExchangeModifier and TypeMethodDescriptionMcpServer.AsyncSpecification.rootsChangeHandler(BiFunction<McpAsyncServerExchange, List<McpSchema.Root>, reactor.core.publisher.Mono<Void>> handler) Registers a consumer that will be notified when the list of roots changes.McpServer.AsyncSpecification.rootsChangeHandlers(List<BiFunction<McpAsyncServerExchange, List<McpSchema.Root>, reactor.core.publisher.Mono<Void>>> handlers) Registers multiple consumers that will be notified when the list of roots changes.McpServer.AsyncSpecification.tool(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler) Adds a single tool with its implementation handler to the server.Constructors in io.modelcontextprotocol.server with parameters of type McpAsyncServerExchangeModifierConstructorDescriptionMcpSyncServerExchange(McpAsyncServerExchange exchange) Create a new synchronous exchange with the client using the provided asynchronous implementation as a delegate.Constructor parameters in io.modelcontextprotocol.server with type arguments of type McpAsyncServerExchangeModifierConstructorDescriptionAsyncPromptSpecification(McpSchema.Prompt prompt, BiFunction<McpAsyncServerExchange, McpSchema.GetPromptRequest, reactor.core.publisher.Mono<McpSchema.GetPromptResult>> promptHandler) Creates an instance of aAsyncPromptSpecificationrecord class.AsyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpAsyncServerExchange, McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> readHandler) Creates an instance of aAsyncResourceSpecificationrecord class.AsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpAsyncServerExchange, Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> call) Creates an instance of aAsyncToolSpecificationrecord class. -
Uses of McpAsyncServerExchange in io.modelcontextprotocol.spec
Methods in io.modelcontextprotocol.spec with parameters of type McpAsyncServerExchangeModifier and TypeMethodDescriptionreactor.core.publisher.Mono<Void>McpServerSession.NotificationHandler.handle(McpAsyncServerExchange exchange, Object params) Handles a notification from the client.reactor.core.publisher.Mono<T>McpServerSession.RequestHandler.handle(McpAsyncServerExchange exchange, Object params) Handles a request from the client.