Class McpVerticle

java.lang.Object
io.vertx.core.AbstractVerticle
io.vertx.ext.mcp.McpVerticle
All Implemented Interfaces:
io.vertx.core.Verticle

public class McpVerticle extends io.vertx.core.AbstractVerticle
Verticle that sets up the MCP server with Vert.x transport Created By Navíd Mitchell 🤪on 8/10/25
  • Field Summary

    Fields inherited from class io.vertx.core.AbstractVerticle

    context, vertx
  • Constructor Summary

    Constructors
    Constructor
    Description
    McpVerticle(int mcpPort, VertxMcpTransport transport, io.modelcontextprotocol.server.McpServer.AsyncSpecification<?> mcpServerSpec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(io.vertx.core.Promise<Void> startPromise)
     
    void
    stop(io.vertx.core.Promise<Void> stopPromise)
     

    Methods inherited from class io.vertx.core.AbstractVerticle

    config, deploymentID, getVertx, init, processArgs, start, stop

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • McpVerticle

      public McpVerticle(int mcpPort, VertxMcpTransport transport, io.modelcontextprotocol.server.McpServer.AsyncSpecification<?> mcpServerSpec)
  • Method Details

    • start

      public void start(io.vertx.core.Promise<Void> startPromise) throws Exception
      Specified by:
      start in interface io.vertx.core.Verticle
      Overrides:
      start in class io.vertx.core.AbstractVerticle
      Throws:
      Exception
    • stop

      public void stop(io.vertx.core.Promise<Void> stopPromise) throws Exception
      Specified by:
      stop in interface io.vertx.core.Verticle
      Overrides:
      stop in class io.vertx.core.AbstractVerticle
      Throws:
      Exception