一键导入
eclipse-run
Launch and stop Java applications in Eclipse. Run with program/VM arguments, capture stdout/stderr, or launch in background.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Launch and stop Java applications in Eclipse. Run with program/VM arguments, capture stdout/stderr, or launch in background.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze Java code using Eclipse JDT tools — type hierarchy, find references, call hierarchy, compilation errors, quick fixes, and import suggestions. Use this to understand code structure before making changes.
Debug Java applications in Eclipse — set breakpoints, launch in debug mode, step through code, inspect stack traces, evaluate expressions, and hot-swap code changes.
Edit files in Eclipse projects using MCP tools. Use this when modifying code in Eclipse workspace projects — it keeps Eclipse editors in sync, triggers incremental compilation, and provides undo via local history.
Run JUnit tests in Eclipse projects — all tests, by package, by class, or individual test methods. Also build Maven projects.
| name | eclipse-run |
| description | Launch and stop Java applications in Eclipse. Run with program/VM arguments, capture stdout/stderr, or launch in background. |
| argument-hint | [project] [main class] |
| allowed-tools | mcp__eclipse-runner__runJavaApplication, mcp__eclipse-runner__launchConfiguration, mcp__eclipse-runner__listLaunchConfigurations, mcp__eclipse-runner__stopApplication, mcp__eclipse-runner__listActiveLaunches, mcp__eclipse-ide__getConsoleOutput |
Launch Java applications using Eclipse's launch infrastructure. Applications run inside Eclipse with full classpath resolution.
runJavaApplication — Launch a Java app in run mode.
projectName — Eclipse project namemainClass — Fully qualified main class (e.g., com.example.Main)programArgs — Optional program argumentsvmArgs — Optional JVM arguments (e.g., -Xmx512m -Dfoo=bar)timeout — Seconds to wait for completion. 0 = launch in background without waiting. Default: 30launchConfiguration — Launch an existing saved launch configuration by name, exactly as it would run from the Run/Debug Configurations dialog. Reuses the configuration's full setup (classpath, VM args, environment variables, working directory, JRebel/agent settings) instead of building a throwaway one.
configurationName — Exact name of the saved configuration (use listLaunchConfigurations to find it)mode — run or debug. Default: runtimeout — Seconds to wait for completion. 0 = background. Default: 0listLaunchConfigurations — List saved launch configurations (name, type, and project/main class for Java apps). Use this to discover the exact name for launchConfiguration.
stopApplication — Terminate a running application by name/class substring match.
nameOrClass — Substring to match (case-insensitive) against launch name or main classlistActiveLaunches — Show all currently running/debugging sessions with status.
getConsoleOutput — Read output from Eclipse consoles (use after background launches).
Run and capture output:
runJavaApplication(projectName="myapp", mainClass="com.example.Main", timeout="30")
Run in background:
runJavaApplication(projectName="myapp", mainClass="com.example.Server", timeout="0")
Run with arguments:
runJavaApplication(projectName="myapp", mainClass="com.example.CLI", programArgs="--verbose input.txt", vmArgs="-Xmx1g")
Launch an existing saved configuration (preserves its env vars, VM args, JRebel, etc.):
listLaunchConfigurations()
launchConfiguration(configurationName="Run Snapshot App No Data Compass Local", mode="debug", timeout="0")
Stop a running app:
stopApplication(nameOrClass="Main")
timeout > 0, the tool waits and returns stdout/stderr and exit codetimeout = 0, the app runs in background — use getConsoleOutput to see output and stopApplication to terminate