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