Class HttpStatelessServerMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.machanism.machai.mcp.maven.AbstractMCPServerMojo
org.machanism.machai.mcp.maven.HttpStatelessServerMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="stateless", aggregator=true) public class HttpStatelessServerMojo extends AbstractMCPServerMojo
Maven plugin Mojo for starting a stateless HTTP MCP server.

This Mojo initializes and starts an HttpStatelessMcpServer using project information and configuration parameters. It is intended to be used as an aggregator goal in multi-module Maven builds.

  • Constructor Details

    • HttpStatelessServerMojo

      public HttpStatelessServerMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Executes the Mojo, starting the stateless HTTP MCP server.

      Applies environment parameters, initializes the server with project name and version, sets the project directory and port, and starts the server. If the server fails to start, a MojoExecutionException is thrown.

      Throws:
      org.apache.maven.plugin.MojoExecutionException - if the server fails to start or configuration is invalid