| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
static McpServer.AsyncSpec |
McpServer.async(ServerMcpTransport transport)
Deprecated.
This method will be removed in 0.9.0. Use
McpServer.async(McpServerTransportProvider) instead. |
McpServer.AsyncSpec |
McpServer.AsyncSpec.capabilities(McpSchema.ServerCapabilities serverCapabilities)
Deprecated.
Sets the server capabilities that will be advertised to clients during
connection initialization.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.prompts(List<McpServerFeatures.AsyncPromptRegistration> prompts)
Deprecated.
Registers multiple prompts with their handlers using a List.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.prompts(Map<String,McpServerFeatures.AsyncPromptRegistration> prompts)
Deprecated.
Registers multiple prompts with their handlers using a Map.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.prompts(McpServerFeatures.AsyncPromptRegistration... prompts)
Deprecated.
Registers multiple prompts with their handlers using varargs.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.resources(List<McpServerFeatures.AsyncResourceRegistration> resourceRegsitrations)
Deprecated.
Registers multiple resources with their handlers using a List.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.resources(Map<String,McpServerFeatures.AsyncResourceRegistration> resourceRegsitrations)
Deprecated.
Registers multiple resources with their handlers using a Map.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.resources(McpServerFeatures.AsyncResourceRegistration... resourceRegistrations)
Deprecated.
Registers multiple resources with their handlers using varargs.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.resourceTemplates(List<McpSchema.ResourceTemplate> resourceTemplates)
Deprecated.
Sets the resource templates that define patterns for dynamic resource access.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.resourceTemplates(McpSchema.ResourceTemplate... resourceTemplates)
Deprecated.
Sets the resource templates using varargs for convenience.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.rootsChangeConsumer(Function<List<McpSchema.Root>,reactor.core.publisher.Mono<Void>> consumer)
Deprecated.
Registers a consumer that will be notified when the list of roots changes.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.rootsChangeConsumers(Function<List<McpSchema.Root>,reactor.core.publisher.Mono<Void>>... consumers)
Deprecated.
Registers multiple consumers that will be notified when the list of roots
changes using varargs.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.rootsChangeConsumers(List<Function<List<McpSchema.Root>,reactor.core.publisher.Mono<Void>>> consumers)
Deprecated.
Registers multiple consumers that will be notified when the list of roots
changes.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.serverInfo(McpSchema.Implementation serverInfo)
Deprecated.
Sets the server implementation information that will be shared with clients
during connection initialization.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.serverInfo(String name,
String version)
Deprecated.
Sets the server implementation information using name and version strings.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.tool(McpSchema.Tool tool,
Function<Map<String,Object>,reactor.core.publisher.Mono<McpSchema.CallToolResult>> handler)
Deprecated.
Adds a single tool with its implementation handler to the server.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.tools(List<McpServerFeatures.AsyncToolRegistration> toolRegistrations)
Deprecated.
Adds multiple tools with their handlers to the server using a List.
|
McpServer.AsyncSpec |
McpServer.AsyncSpec.tools(McpServerFeatures.AsyncToolRegistration... toolRegistrations)
Deprecated.
Adds multiple tools with their handlers to the server using varargs.
|
Copyright © 2025. All rights reserved.