Class MCPServer

java.lang.Object
io.github.apexdevtools.apexls.mcp.MCPServer

public class MCPServer extends Object
Main entry point for the Apex Language Server MCP (Model Context Protocol) server.

This server runs on Java 17 and uses the official MCP Java SDK to provide MCP protocol support. It communicates with the main apex-ls core (Java 8) through a bridge interface.

Usage: java -jar apex-ls-mcp.jar

The server communicates via stdin/stdout using the MCP protocol.

  • Constructor Details

  • Method Details

    • run

      public void run() throws Exception
      Initialize and run the MCP server.
      Throws:
      Exception - if server startup fails
    • main

      public static void main(String[] args)
      Main entry point for the MCP server.
      Parameters:
      args - command line arguments