Uses of Class
io.modelcontextprotocol.server.McpServer.AsyncSpec
Packages that use McpServer.AsyncSpec
-
Uses of McpServer.AsyncSpec in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return McpServer.AsyncSpecModifier and TypeMethodDescriptionstatic McpServer.AsyncSpecMcpServer.async(ServerMcpTransport transport) Deprecated.This method will be removed in 0.9.0.McpServer.AsyncSpec.capabilities(McpSchema.ServerCapabilities serverCapabilities) Deprecated.Sets the server capabilities that will be advertised to clients during connection initialization.McpServer.AsyncSpec.prompts(McpServerFeatures.AsyncPromptRegistration... prompts) Deprecated.Registers multiple prompts with their handlers using varargs.McpServer.AsyncSpec.prompts(List<McpServerFeatures.AsyncPromptRegistration> prompts) Deprecated.Registers multiple prompts with their handlers using a List.McpServer.AsyncSpec.prompts(Map<String, McpServerFeatures.AsyncPromptRegistration> prompts) Deprecated.Registers multiple prompts with their handlers using a Map.McpServer.AsyncSpec.resources(McpServerFeatures.AsyncResourceRegistration... resourceRegistrations) Deprecated.Registers multiple resources with their handlers using varargs.McpServer.AsyncSpec.resources(List<McpServerFeatures.AsyncResourceRegistration> resourceRegsitrations) Deprecated.Registers multiple resources with their handlers using a List.McpServer.AsyncSpec.resources(Map<String, McpServerFeatures.AsyncResourceRegistration> resourceRegsitrations) Deprecated.Registers multiple resources with their handlers using a Map.McpServer.AsyncSpec.resourceTemplates(McpSchema.ResourceTemplate... resourceTemplates) Deprecated.Sets the resource templates using varargs for convenience.McpServer.AsyncSpec.resourceTemplates(List<McpSchema.ResourceTemplate> resourceTemplates) Deprecated.Sets the resource templates that define patterns for dynamic resource access.McpServer.AsyncSpec.rootsChangeConsumer(Function<List<McpSchema.Root>, reactor.core.publisher.Mono<Void>> consumer) Deprecated.Registers a consumer that will be notified when the list of roots changes.McpServer.AsyncSpec.rootsChangeConsumers(Function<List<McpSchema.Root>, reactor.core.publisher.Mono<Void>>... consumers) Deprecated.Registers multiple consumers that will be notified when the list of roots changes using varargs.McpServer.AsyncSpec.rootsChangeConsumers(List<Function<List<McpSchema.Root>, reactor.core.publisher.Mono<Void>>> consumers) Deprecated.Registers multiple consumers that will be notified when the list of roots changes.McpServer.AsyncSpec.serverInfo(McpSchema.Implementation serverInfo) Deprecated.Sets the server implementation information that will be shared with clients during connection initialization.McpServer.AsyncSpec.serverInfo(String name, String version) Deprecated.Sets the server implementation information using name and version strings.McpServer.AsyncSpec.tool(McpSchema.Tool tool, Function<Map<String, Object>, reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler) Deprecated.Adds a single tool with its implementation handler to the server.McpServer.AsyncSpec.tools(McpServerFeatures.AsyncToolRegistration... toolRegistrations) Deprecated.Adds multiple tools with their handlers to the server using varargs.McpServer.AsyncSpec.tools(List<McpServerFeatures.AsyncToolRegistration> toolRegistrations) Deprecated.Adds multiple tools with their handlers to the server using a List.