Class WorkshopServer

java.lang.Object
ai.tabforge.workshop.WorkshopServer

public class WorkshopServer extends Object
Wires together all MCP tools and starts the server over STDIO transport.

Think of this class as a switchboard operator: it knows which tools exist, registers them all with the MCP framework, and then keeps the process alive so that Claude Desktop can call any tool at any time.

STDIO transport means that Claude Desktop launches this process as a child process and communicates via standard input/output streams — the same mechanism used by language servers (LSP). No network port is opened.

Created by: Main.main(String[]).

  • Constructor Details

    • WorkshopServer

      public WorkshopServer()
  • Method Details

    • start

      public void start()
      Registers all tools and starts the MCP server. Blocks indefinitely until the process is terminated.

      Sequence:

      1. Instantiate all tools, each backed by the shared OrchestratorAgent.
      2. Build the MCP server with STDIO transport and the combined tool list.
      3. Block the current thread via Thread.join() — the MCP framework handles incoming requests on its own threads.

      Called from: Main.main(String[]).