MyDebug Multi Server AI for VS Code
Run several Tomcat servers side by side — one per repository, and one more per git branch when you need it — and let
your AI coding agent start, restart and inspect them through MCP.
- Many repositories, one list — describe your web applications once in
servers.json (repository folder, build
command, WAR or exploded folder, context path). Each one gets its own Tomcat instance and its own free port; nothing
is written into your Tomcat installation.
- Branches side by side — start another branch of the same repository and it is built in a separate git worktree
and served on another port. Your working folder is never switched.
- Stale marker — an instance started from an older commit or another branch is flagged until you restart it.
- Built for AI agents — a local MCP server gives Claude Code, Cursor, Codex and other agents the tools
status,
start_server, stop_server, restart_server, tail_log, start_profile, start_all, stop_all and clean.
- Debugger and logs — every instance has a debug port; attach the debugger or open the console log from the panel.
- Stays on your machine — servers listen on localhost only, and agents can run only what
servers.json defines.
Usage
- Open the Multi Server tab in the bottom panel (or run Multi Server: Show).
- Press Edit servers.json and describe your servers; the list follows the file.
- Select a row and press Start, or Start a Branch… to run another branch next to it.
- Press Connect an AI Agent for the command that registers the MCP server with your agent.
The servers are owned by a small background process (the daemon), not by VS Code: they keep running when the window
closes, and VS Code, IntelliJ IDEA and your agents all see the same instances. Everything lives in
~/.mydebug-multiserver (override with MULTISERVER_HOME).
servers.json
{
"tomcats": { "10": "C:/tools/apache-tomcat-10.1.34" },
"tomcat": "10",
"servers": [
{
"name": "orders",
"repo": "C:/dev/orders",
"build": "mvn -q -DskipTests package",
"artifact": "target/orders.war",
"context": "/orders",
"dependsOn": ["billing"],
"env": { "BILLING_URL": "${url:billing}" }
},
{ "name": "billing", "repo": "C:/dev/billing", "build": "gradlew.bat war", "artifact": "build/exploded" }
],
"profiles": { "payment": { "orders": "feature-pay", "billing": "" } }
}
All keys are described in the repository README.
Requirements
- Java 17 or newer to run the daemon (setting
multiServer.javaHome; by default the JDKs of the Java extension, then
JAVA_HOME, then java on the PATH). The servers themselves use the javaHome of servers.json.
- A Tomcat installation, and git for branch instances.
- Debugger for Java for Attach Debugger.
Also available
IntelliJ IDEA: MyDebug Multi Server AI on the JetBrains Marketplace ·
Source: github.com/mustafaergan/multiserver · Apache-2.0