| Package | Description |
|---|---|
| io.modelcontextprotocol.server |
| Modifier and Type | Method and Description |
|---|---|
McpServerFeatures.AsyncToolSpecification |
McpServerFeatures.AsyncToolSpecification.Builder.build()
Builds the AsyncToolSpecification instance.
|
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
McpAsyncServer.addTool(McpServerFeatures.AsyncToolSpecification toolSpecification)
Add a new tool call specification at runtime.
|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.tools(McpServerFeatures.AsyncToolSpecification... toolSpecifications)
Adds multiple tools with their handlers to the server using varargs.
|
| Modifier and Type | Method and Description |
|---|---|
McpServer.AsyncSpecification<S> |
McpServer.AsyncSpecification.tools(List<McpServerFeatures.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<McpServerFeatures.AsyncToolSpecification> tools,
Map<String,McpServerFeatures.AsyncResourceSpecification> resources,
List<McpSchema.ResourceTemplate> resourceTemplates,
Map<String,McpServerFeatures.AsyncPromptSpecification> prompts,
Map<McpSchema.CompleteReference,McpServerFeatures.AsyncCompletionSpecification> completions,
List<BiFunction<McpAsyncServerExchange,List<McpSchema.Root>,reactor.core.publisher.Mono<Void>>> rootsChangeConsumers,
String instructions)
Create an instance and validate the arguments.
|
Copyright © 2025. All rights reserved.