Package io.modelcontextprotocol.server
Class McpServer.StreamableSyncSpecification
java.lang.Object
io.modelcontextprotocol.server.McpServer.SyncSpecification<McpServer.StreamableSyncSpecification>
io.modelcontextprotocol.server.McpServer.StreamableSyncSpecification
- Enclosing interface:
- McpServer
public static class McpServer.StreamableSyncSpecification
extends McpServer.SyncSpecification<McpServer.StreamableSyncSpecification>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a synchronous MCP server that provides blocking operations.Methods inherited from class io.modelcontextprotocol.server.McpServer.SyncSpecification
capabilities, completions, completions, immediateExecution, instructions, jsonSchemaValidator, objectMapper, prompts, prompts, prompts, requestTimeout, resources, resources, resources, resourceTemplates, resourceTemplates, rootsChangeHandler, rootsChangeHandlers, rootsChangeHandlers, serverInfo, serverInfo, tool, toolCall, tools, tools, uriTemplateManagerFactory
-
Method Details
-
build
Builds a synchronous MCP server that provides blocking operations.- Specified by:
buildin classMcpServer.SyncSpecification<McpServer.StreamableSyncSpecification>- Returns:
- A new instance of
McpSyncServerconfigured with this builder's settings.
-