Uses of Interface
io.modelcontextprotocol.server.McpTransportContext
Packages that use McpTransportContext
-
Uses of McpTransportContext in io.modelcontextprotocol.server
Classes in io.modelcontextprotocol.server that implement McpTransportContextModifier and TypeClassDescriptionclassDefault implementation forMcpTransportContextwhich uses a Thread-safe map.Fields in io.modelcontextprotocol.server declared as McpTransportContextModifier and TypeFieldDescriptionstatic final McpTransportContextMcpTransportContext.EMPTYAn empty, unmodifiable context.Methods in io.modelcontextprotocol.server that return McpTransportContextModifier and TypeMethodDescriptionDefaultMcpTransportContext.copy()Allows copying the contents.McpTransportContext.copy()Copies the contents of the context to allow further modifications without affecting the initial object.McpTransportContextExtractor.extract(T request, McpTransportContext transportContext) Given an empty context, provides the means to fill it with transport-specific metadata extracted from the request.McpAsyncServerExchange.transportContext()Provides theMcpTransportContextassociated with the transport layer.McpSyncServerExchange.transportContext()Provides theMcpTransportContextassociated with the transport layer.Methods in io.modelcontextprotocol.server that return types with arguments of type McpTransportContextModifier and TypeMethodDescriptionBiFunction<McpTransportContext,McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> McpStatelessServerFeatures.AsyncToolSpecification.callHandler()Returns the value of thecallHandlerrecord component.McpStatelessServerFeatures.SyncToolSpecification.callHandler()Returns the value of thecallHandlerrecord component.BiFunction<McpTransportContext,McpSchema.CompleteRequest, reactor.core.publisher.Mono<McpSchema.CompleteResult>> McpStatelessServerFeatures.AsyncCompletionSpecification.completionHandler()Returns the value of thecompletionHandlerrecord component.McpStatelessServerFeatures.SyncCompletionSpecification.completionHandler()Returns the value of thecompletionHandlerrecord component.BiFunction<McpTransportContext,McpSchema.GetPromptRequest, reactor.core.publisher.Mono<McpSchema.GetPromptResult>> McpStatelessServerFeatures.AsyncPromptSpecification.promptHandler()Returns the value of thepromptHandlerrecord component.McpStatelessServerFeatures.SyncPromptSpecification.promptHandler()Returns the value of thepromptHandlerrecord component.BiFunction<McpTransportContext,McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> McpStatelessServerFeatures.AsyncResourceSpecification.readHandler()Returns the value of thereadHandlerrecord component.McpStatelessServerFeatures.SyncResourceSpecification.readHandler()Returns the value of thereadHandlerrecord component.Methods in io.modelcontextprotocol.server with parameters of type McpTransportContextModifier and TypeMethodDescriptionMcpTransportContextExtractor.extract(T request, McpTransportContext transportContext) Given an empty context, provides the means to fill it with transport-specific metadata extracted from the request.reactor.core.publisher.Mono<Void>McpStatelessNotificationHandler.handle(McpTransportContext transportContext, Object params) Handle to notification and complete once done.reactor.core.publisher.Mono<R>McpStatelessRequestHandler.handle(McpTransportContext transportContext, Object params) Handle the request and complete with a result.reactor.core.publisher.Mono<Void>McpStatelessServerHandler.handleNotification(McpTransportContext transportContext, McpSchema.JSONRPCNotification notification) Handle the notification.reactor.core.publisher.Mono<McpSchema.JSONRPCResponse>McpStatelessServerHandler.handleRequest(McpTransportContext transportContext, McpSchema.JSONRPCRequest request) Handle the request using user-provided feature implementations.Method parameters in io.modelcontextprotocol.server with type arguments of type McpTransportContextModifier and TypeMethodDescriptionMcpStatelessServerFeatures.AsyncToolSpecification.Builder.callHandler(BiFunction<McpTransportContext, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Sets the call tool handler function.McpStatelessServerFeatures.SyncToolSpecification.Builder.callHandler(BiFunction<McpTransportContext, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Sets the call tool handler function.McpServer.StatelessAsyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Adds a single tool with its implementation handler to the server.McpServer.StatelessSyncSpecification.toolCall(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Adds a single tool with its implementation handler to the server.Constructors in io.modelcontextprotocol.server with parameters of type McpTransportContextModifierConstructorDescriptionMcpAsyncServerExchange(String sessionId, McpLoggableSession session, McpSchema.ClientCapabilities clientCapabilities, McpSchema.Implementation clientInfo, McpTransportContext transportContext) Create a new asynchronous exchange with the client.Constructor parameters in io.modelcontextprotocol.server with type arguments of type McpTransportContextModifierConstructorDescriptionAsyncCompletionSpecification(McpSchema.CompleteReference referenceKey, BiFunction<McpTransportContext, McpSchema.CompleteRequest, reactor.core.publisher.Mono<McpSchema.CompleteResult>> completionHandler) Creates an instance of aAsyncCompletionSpecificationrecord class.AsyncPromptSpecification(McpSchema.Prompt prompt, BiFunction<McpTransportContext, McpSchema.GetPromptRequest, reactor.core.publisher.Mono<McpSchema.GetPromptResult>> promptHandler) Creates an instance of aAsyncPromptSpecificationrecord class.AsyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpTransportContext, McpSchema.ReadResourceRequest, reactor.core.publisher.Mono<McpSchema.ReadResourceResult>> readHandler) Creates an instance of aAsyncResourceSpecificationrecord class.AsyncToolSpecification(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler) Creates an instance of aAsyncToolSpecificationrecord class.SyncCompletionSpecification(McpSchema.CompleteReference referenceKey, BiFunction<McpTransportContext, McpSchema.CompleteRequest, McpSchema.CompleteResult> completionHandler) Creates an instance of aSyncCompletionSpecificationrecord class.SyncPromptSpecification(McpSchema.Prompt prompt, BiFunction<McpTransportContext, McpSchema.GetPromptRequest, McpSchema.GetPromptResult> promptHandler) Creates an instance of aSyncPromptSpecificationrecord class.SyncResourceSpecification(McpSchema.Resource resource, BiFunction<McpTransportContext, McpSchema.ReadResourceRequest, McpSchema.ReadResourceResult> readHandler) Creates an instance of aSyncResourceSpecificationrecord class.SyncToolSpecification(McpSchema.Tool tool, BiFunction<McpTransportContext, McpSchema.CallToolRequest, McpSchema.CallToolResult> callHandler) Creates an instance of aSyncToolSpecificationrecord class.