Class Main
Launched by Claude Desktop / Cursor via the path registered in claude_desktop_config.json. Starts the MCP server on STDIN/STDOUT (StdioServerTransport) and blocks until the parent process disconnects.
CRITICAL: This class must NEVER write to System.out directly. STDOUT is owned by the MCP protocol (JSON-RPC framing). All diagnostic output goes through SLF4J → Logback → STDERR. One stray println corrupts the MCP framing and breaks Claude Desktop.
Analogy: like a language server (LSP) — it communicates via a structured protocol on STDIN/STDOUT. Your IDE's log window shows its stderr; it never clutters the protocol channel.
CERTIFICATION NOTE — Tool Design & MCP Integration (18% of exam):
The MCP server lifecycle (start → register tools → serve → shutdown)
is what this class orchestrates. The tools themselves live in
ai.tabforge.workshop.tools.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
-