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