Package io.micronaut.starter.feature.mcp
Class McpStdio
java.lang.Object
io.micronaut.starter.feature.mcp.McpStdio
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,Feature
,McpFeature
,OneOfFeature
,RequiresDisabledBanner
,RequiresStdErr
,ServerFeature
@Requires(property="micronaut.starter.feature.mcp.stdio.enabled",
value="true",
defaultValue="true")
@Singleton
public class McpStdio
extends Object
implements McpFeature, RequiresDisabledBanner, RequiresStdErr, ServerFeature
-
Field Summary
FieldsFields inherited from interface io.micronaut.starter.feature.mcp.McpFeature
ARTIFACT_ID_MICRONAUT_MCP_SERVER_JAVA_SDK, MCP_HTTP_DEPENDENCY
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
getName()
The name of the feature.getTitle()
boolean
supports
(ApplicationType applicationType) This method must be implemented to ensure it is only selectable for the desired application types.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
Methods inherited from interface io.micronaut.starter.feature.Feature
getOrder, isCommunity, isPreview, isVisible, processSelectedFeatures
Methods inherited from interface io.micronaut.starter.feature.mcp.McpFeature
apply, getThirdPartyDocumentation
Methods inherited from interface io.micronaut.starter.feature.server.ServerFeature
getFeatureClass
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
McpStdio
public McpStdio()
-
-
Method Details
-
getName
Description copied from interface:Feature
The name of the feature. It must be unique. -
getTitle
-
getDescription
- Specified by:
getDescription
in interfaceio.micronaut.core.naming.Described
- Specified by:
getDescription
in interfaceFeature
-
getMicronautDocumentation
- Specified by:
getMicronautDocumentation
in interfaceFeature
- Returns:
- Returns a link to Micronaut documentation about the feature. eg. https://micronaut-projects.github.io/micronaut-cache/latest/guide/index.html#hazelcast
-
getCategory
- Specified by:
getCategory
in interfaceFeature
- Specified by:
getCategory
in interfaceMcpFeature
- Specified by:
getCategory
in interfaceServerFeature
- Returns:
- The
Category
to which the feature belongs to.
-
supports
Description copied from interface:Feature
This method must be implemented to ensure it is only selectable for the desired application types. This method is not used for determining if a default feature should be applied.- Specified by:
supports
in interfaceFeature
- Specified by:
supports
in interfaceMcpFeature
- Specified by:
supports
in interfaceServerFeature
- Parameters:
applicationType
- The application type- Returns:
- True if the feature can be selected by the user
-
getTransport
- Specified by:
getTransport
in interfaceMcpFeature
-