Uses of Class
io.modelcontextprotocol.server.McpServer.SyncSpecification
Packages that use McpServer.SyncSpecification
-
Uses of McpServer.SyncSpecification in io.modelcontextprotocol.server
Methods in io.modelcontextprotocol.server that return McpServer.SyncSpecificationModifier and TypeMethodDescriptionMcpServer.SyncSpecification.capabilities(McpSchema.ServerCapabilities serverCapabilities) Sets the server capabilities that will be advertised to clients during connection initialization.McpServer.SyncSpecification.completions(McpServerFeatures.SyncCompletionSpecification... completions) Registers multiple completions with their handlers using varargs.McpServer.SyncSpecification.completions(List<McpServerFeatures.SyncCompletionSpecification> completions) Registers multiple completions with their handlers using a List.McpServer.SyncSpecification.instructions(String instructions) Sets the server instructions that will be shared with clients during connection initialization.McpServer.SyncSpecification.objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Sets the object mapper to use for serializing and deserializing JSON messages.McpServer.SyncSpecification.prompts(McpServerFeatures.SyncPromptSpecification... prompts) Registers multiple prompts with their handlers using varargs.McpServer.SyncSpecification.prompts(List<McpServerFeatures.SyncPromptSpecification> prompts) Registers multiple prompts with their handlers using a List.McpServer.SyncSpecification.prompts(Map<String, McpServerFeatures.SyncPromptSpecification> prompts) Registers multiple prompts with their handlers using a Map.McpServer.SyncSpecification.requestTimeout(Duration requestTimeout) Sets the duration to wait for server responses before timing out requests.McpServer.SyncSpecification.resources(McpServerFeatures.SyncResourceSpecification... resourceSpecifications) Registers multiple resources with their handlers using varargs.McpServer.SyncSpecification.resources(List<McpServerFeatures.SyncResourceSpecification> resourceSpecifications) Registers multiple resources with their handlers using a List.McpServer.SyncSpecification.resources(Map<String, McpServerFeatures.SyncResourceSpecification> resourceSpecifications) Registers multiple resources with their handlers using a Map.McpServer.SyncSpecification.resourceTemplates(McpSchema.ResourceTemplate... resourceTemplates) Sets the resource templates using varargs for convenience.McpServer.SyncSpecification.resourceTemplates(List<McpSchema.ResourceTemplate> resourceTemplates) Sets the resource templates that define patterns for dynamic resource access.McpServer.SyncSpecification.rootsChangeHandler(BiConsumer<McpSyncServerExchange, List<McpSchema.Root>> handler) Registers a consumer that will be notified when the list of roots changes.McpServer.SyncSpecification.rootsChangeHandlers(BiConsumer<McpSyncServerExchange, List<McpSchema.Root>>... handlers) Registers multiple consumers that will be notified when the list of roots changes using varargs.McpServer.SyncSpecification.rootsChangeHandlers(List<BiConsumer<McpSyncServerExchange, List<McpSchema.Root>>> handlers) Registers multiple consumers that will be notified when the list of roots changes.McpServer.SyncSpecification.serverInfo(McpSchema.Implementation serverInfo) Sets the server implementation information that will be shared with clients during connection initialization.McpServer.SyncSpecification.serverInfo(String name, String version) Sets the server implementation information using name and version strings.static McpServer.SyncSpecificationMcpServer.sync(McpServerTransportProvider transportProvider) Starts building a synchronous MCP server that provides blocking operations.McpServer.SyncSpecification.tool(McpSchema.Tool tool, BiFunction<McpSyncServerExchange, Map<String, Object>, McpSchema.CallToolResult> handler) Adds a single tool with its implementation handler to the server.McpServer.SyncSpecification.tools(McpServerFeatures.SyncToolSpecification... toolSpecifications) Adds multiple tools with their handlers to the server using varargs.McpServer.SyncSpecification.tools(List<McpServerFeatures.SyncToolSpecification> toolSpecifications) Adds multiple tools with their handlers to the server using a List.McpServer.SyncSpecification.uriTemplateManagerFactory(McpUriTemplateManagerFactory uriTemplateManagerFactory) Sets the URI template manager factory to use for creating URI templates.