| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpStatelessServerFeatures.AsyncToolSpecification |
McpStatelessServerFeatures.AsyncToolSpecification.Builder.build()
Builds the AsyncToolSpecification instance.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
McpStatelessAsyncServer.addTool(McpStatelessServerFeatures.AsyncToolSpecification toolSpecification)
Add a new tool specification at runtime.
|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.tools(McpStatelessServerFeatures.AsyncToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.StatelessAsyncSpecification |
McpServer.StatelessAsyncSpecification.tools(List<McpStatelessServerFeatures.AsyncToolSpecification> toolSpecifications)
Adds multiple tools with their handlers to the server using a List.
|
| Constructor and Description |
|---|
Async(McpSchema.Implementation serverInfo,
McpSchema.ServerCapabilities serverCapabilities,
List<McpStatelessServerFeatures.AsyncToolSpecification> tools,
Map<String,McpStatelessServerFeatures.AsyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpStatelessServerFeatures.AsyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpStatelessServerFeatures.AsyncCompletionSpecification> completions,
String instructions)
Create an instance and validate the arguments.
|
Copyright © 2025. All rights reserved.