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