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) Sets the server capabilities that will be advertised to clients during connection initialization.McpServer.SyncSpec.prompts(McpServerFeatures.SyncPromptRegistration... prompts) Registers multiple prompts with their handlers using varargs.McpServer.SyncSpec.prompts(List<McpServerFeatures.SyncPromptRegistration> prompts) Registers multiple prompts with their handlers using a List.McpServer.SyncSpec.prompts(Map<String, McpServerFeatures.SyncPromptRegistration> prompts) Registers multiple prompts with their handlers using a Map.McpServer.SyncSpec.resources(McpServerFeatures.SyncResourceRegistration... resourceRegistrations) Registers multiple resources with their handlers using varargs.McpServer.SyncSpec.resources(List<McpServerFeatures.SyncResourceRegistration> resourceRegsitrations) Registers multiple resources with their handlers using a List.McpServer.SyncSpec.resources(Map<String, McpServerFeatures.SyncResourceRegistration> resourceRegsitrations) Registers multiple resources with their handlers using a Map.McpServer.SyncSpec.resourceTemplates(McpSchema.ResourceTemplate... resourceTemplates) Sets the resource templates using varargs for convenience.McpServer.SyncSpec.resourceTemplates(List<McpSchema.ResourceTemplate> resourceTemplates) Sets the resource templates that define patterns for dynamic resource access.McpServer.SyncSpec.rootsChangeConsumer(Consumer<List<McpSchema.Root>> consumer) Registers a consumer that will be notified when the list of roots changes.McpServer.SyncSpec.rootsChangeConsumers(Consumer<List<McpSchema.Root>>... consumers) Registers multiple consumers that will be notified when the list of roots changes using varargs.McpServer.SyncSpec.rootsChangeConsumers(List<Consumer<List<McpSchema.Root>>> consumers) Registers multiple consumers that will be notified when the list of roots changes.McpServer.SyncSpec.serverInfo(McpSchema.Implementation serverInfo) Sets the server implementation information that will be shared with clients during connection initialization.McpServer.SyncSpec.serverInfo(String name, String version) Sets the server implementation information using name and version strings.static McpServer.SyncSpecMcpServer.sync(ServerMcpTransport transport) Starts building a synchronous MCP server that provides blocking operations.McpServer.SyncSpec.tool(McpSchema.Tool tool, Function<Map<String, Object>, McpSchema.CallToolResult> handler) Adds a single tool with its implementation handler to the server.McpServer.SyncSpec.tools(McpServerFeatures.SyncToolRegistration... toolRegistrations) Adds multiple tools with their handlers to the server using varargs.McpServer.SyncSpec.tools(List<McpServerFeatures.SyncToolRegistration> toolRegistrations) Adds multiple tools with their handlers to the server using a List.