Uses of Interface
io.modelcontextprotocol.common.McpTransportContext
Packages that use McpTransportContext
Package
Description
-
Uses of McpTransportContext in io.modelcontextprotocol.client
Method parameters in io.modelcontextprotocol.client with type arguments of type McpTransportContextModifier and TypeMethodDescriptionMcpClient.SyncSpec.transportContextProvider(Supplier<McpTransportContext> contextProvider) Add a provider ofMcpTransportContext, providing a context before calling any client operation. -
Uses of McpTransportContext in io.modelcontextprotocol.client.transport.customizer
Methods in io.modelcontextprotocol.client.transport.customizer with parameters of type McpTransportContextModifier and TypeMethodDescriptionorg.reactivestreams.Publisher<HttpRequest.Builder>DelegatingMcpAsyncHttpClientRequestCustomizer.customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) voidDelegatingMcpSyncHttpClientRequestCustomizer.customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) org.reactivestreams.Publisher<HttpRequest.Builder>McpAsyncHttpClientRequestCustomizer.customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) org.reactivestreams.Publisher<HttpRequest.Builder>McpAsyncHttpClientRequestCustomizer.Noop.customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) voidMcpSyncHttpClientRequestCustomizer.customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) -
Uses of McpTransportContext in io.modelcontextprotocol.common
Fields in io.modelcontextprotocol.common declared as McpTransportContextModifier and TypeFieldDescriptionstatic final McpTransportContextMcpTransportContext.EMPTYAn empty, unmodifiable context.Methods in io.modelcontextprotocol.common that return McpTransportContextModifier and TypeMethodDescriptionstatic McpTransportContextCreate an unmodifiable context containing the given metadata. -
Uses of McpTransportContext in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return McpTransportContextModifier and TypeMethodDescriptionExtract transport-specific metadata from the request into an McpTransportContext.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 TypeMethodDescriptionreactor.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.