java.lang.Object
org.nasdanika.cli.CommandBase
org.nasdanika.cli.CommandGroup
org.nasdanika.ai.mcp.McpServerCommandBase
org.nasdanika.ai.mcp.McpServerCommand
- All Implemented Interfaces:
Callable<Integer>,McpAsyncServerProvider,Closeable
-
Field Summary
Fields inherited from class org.nasdanika.cli.CommandBase
capabilityLoader, spec -
Constructor Summary
ConstructorsConstructorDescriptionMcpServerCommand(io.opentelemetry.api.OpenTelemetry openTelemetry, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification> syncPromptSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification> asyncPromptSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification> syncResourceSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification> asyncResourceSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification> syncToolSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> asyncToolSpecifications) -
Method Summary
Modifier and TypeMethodDescriptionCollection<io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification> Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification> Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> booleanisEmpty()Methods inherited from class org.nasdanika.ai.mcp.McpServerCommandBase
createServer, getInstrumentationScopeName, getName, getVersion, isLogging, measureDurationMethods inherited from class org.nasdanika.cli.CommandGroup
callMethods inherited from class org.nasdanika.cli.CommandBase
close, getCapabilityLoader
-
Constructor Details
-
McpServerCommand
public McpServerCommand(io.opentelemetry.api.OpenTelemetry openTelemetry, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncPromptSpecification> syncPromptSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification> asyncPromptSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncResourceSpecification> syncResourceSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification> asyncResourceSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.SyncToolSpecification> syncToolSpecifications, Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> asyncToolSpecifications)
-
-
Method Details
-
isEmpty
-
getResourceSpecifications
public Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncResourceSpecification> getResourceSpecifications()- Overrides:
getResourceSpecificationsin classMcpServerCommandBase
-
getToolSpecifications
public Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncToolSpecification> getToolSpecifications()- Overrides:
getToolSpecificationsin classMcpServerCommandBase
-
getPromptSpecifications
public Collection<io.modelcontextprotocol.server.McpServerFeatures.AsyncPromptSpecification> getPromptSpecifications()- Overrides:
getPromptSpecificationsin classMcpServerCommandBase
-