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 Details

  • Constructor Details

    • McpStdio

      public McpStdio()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Feature
      The name of the feature. It must be unique.
      Specified by:
      getName in interface Feature
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Returns:
      the name of the feature
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface Feature
      Returns:
      The title of the feature
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface io.micronaut.core.naming.Described
      Specified by:
      getDescription in interface Feature
    • getMicronautDocumentation

      @Nullable public @Nullable String getMicronautDocumentation()
      Specified by:
      getMicronautDocumentation in interface Feature
      Returns:
      Returns a link to Micronaut documentation about the feature. eg. https://micronaut-projects.github.io/micronaut-cache/latest/guide/index.html#hazelcast
    • getCategory

      public String getCategory()
      Specified by:
      getCategory in interface Feature
      Specified by:
      getCategory in interface McpFeature
      Specified by:
      getCategory in interface ServerFeature
      Returns:
      The Category to which the feature belongs to.
    • supports

      public boolean supports(ApplicationType applicationType)
      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 interface Feature
      Specified by:
      supports in interface McpFeature
      Specified by:
      supports in interface ServerFeature
      Parameters:
      applicationType - The application type
      Returns:
      True if the feature can be selected by the user
    • getTransport

      public String getTransport()
      Specified by:
      getTransport in interface McpFeature