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