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_DEPENDENCYFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetName()The name of the feature.getTitle()booleansupports(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, waitMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods inherited from interface io.micronaut.starter.feature.Feature
getOrder, isCommunity, isPreview, isVisible, processSelectedFeaturesMethods inherited from interface io.micronaut.starter.feature.mcp.McpFeature
apply, getThirdPartyDocumentationMethods 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:FeatureThe name of the feature. It must be unique. -
getTitle
-
getDescription
- Specified by:
getDescriptionin interfaceio.micronaut.core.naming.Described- Specified by:
getDescriptionin interfaceFeature
-
getMicronautDocumentation
- Specified by:
getMicronautDocumentationin 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:
getCategoryin interfaceFeature- Specified by:
getCategoryin interfaceMcpFeature- Specified by:
getCategoryin interfaceServerFeature- Returns:
- The
Categoryto which the feature belongs to.
-
supports
Description copied from interface:FeatureThis 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:
supportsin interfaceFeature- Specified by:
supportsin interfaceMcpFeature- Specified by:
supportsin interfaceServerFeature- Parameters:
applicationType- The application type- Returns:
- True if the feature can be selected by the user
-
getTransport
- Specified by:
getTransportin interfaceMcpFeature
-