| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
static McpServer.StatelessAsyncSpecification |
McpServer.async(McpStatelessServerTransport transport)
Starts building an asynchronous MCP server that provides non-blocking operations.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.capabilities(McpSchema.ServerCapabilities serverCapabilities)
Sets the server capabilities that will be advertised to clients during
connection initialization.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.completions(List<McpStatelessServerFeatures.AsyncCompletionSpecification> completions)
Registers multiple completions with their handlers using a List.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.completions(McpStatelessServerFeatures.AsyncCompletionSpecification... completions)
Registers multiple completions with their handlers using varargs.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.instructions(String instructions)
Sets the server instructions that will be shared with clients during connection
initialization.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.jsonSchemaValidator(JsonSchemaValidator jsonSchemaValidator)
Sets the JSON schema validator to use for validating tool and resource schemas.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.objectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Sets the object mapper to use for serializing and deserializing JSON messages.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.prompts(List<McpStatelessServerFeatures.AsyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a List.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.prompts(Map<String,McpStatelessServerFeatures.AsyncPromptSpecification> prompts)
Registers multiple prompts with their handlers using a Map.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.prompts(McpStatelessServerFeatures.AsyncPromptSpecification... prompts)
Registers multiple prompts with their handlers using varargs.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.requestTimeout(Duration requestTimeout)
Sets the duration to wait for server responses before timing out requests.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.resources(List<McpStatelessServerFeatures.AsyncResourceSpecification> resourceSpecifications)
Registers multiple resources with their handlers using a List.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.resources(Map<String,McpStatelessServerFeatures.AsyncResourceSpecification> resourceSpecifications)
Registers multiple resources with their handlers using a Map.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.resources(McpStatelessServerFeatures.AsyncResourceSpecification... resourceSpecifications)
Registers multiple resources with their handlers using varargs.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.resourceTemplates(List<McpSchema.ResourceTemplate> resourceTemplates)
Sets the resource templates that define patterns for dynamic resource access.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.resourceTemplates(McpSchema.ResourceTemplate... resourceTemplates)
Sets the resource templates using varargs for convenience.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.serverInfo(McpSchema.Implementation serverInfo)
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.serverInfo(String name,
String version)
Sets the server implementation information using name and version strings.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.toolCall(McpSchema.Tool tool,
BiFunction<McpTransportContext,McpSchema.CallToolRequest,reactor.core.publisher.Mono<McpSchema.CallToolResult>> callHandler)
Adds a single tool with its implementation handler to the server.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.tools(List<McpStatelessServerFeatures.AsyncToolSpecification> toolSpecifications)
Adds multiple tools with their handlers to the server using a List.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.tools(McpStatelessServerFeatures.AsyncToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.uriTemplateManagerFactory(McpUriTemplateManagerFactory uriTemplateManagerFactory)
Sets the URI template manager factory to use for creating URI templates.
|
Copyright © 2025. All rights reserved.