
Eclipse 的 MCP 服务器
概览
将运行中的 Eclipse IDE 转变为 MCP 服务器,使外部 LLM 客户端(Claude Code、Cursor 或任何支持 MCP 的代理)可以向 IDE 请求他们无法廉价从文件中重建的内容:已解析的 Java 模型、构建者的问题标记、调试器和实时工作台。 由vogella GmbH构建和维护,并用于我们的咨询服务以及基于AI的Java清理服务,用于遗留代码和代码优化。 服务器是 ,仅在 127.0.0.1 上监听,拒绝所有没有承载令牌的请求。大多数工具都是只读的;每个更改某些内容的工具都会在自己的描述中说明,而那些可以默认预演的工具也会这样做。 在Eclipse中,选择帮助>安装新软件,添加 并安装该功能。该网站仅提供最新版本;旧版本可通过Add > Archive作为每个GitHub发布版本附带的仓库压缩包提供。 p2 仓库最终会在 update-site/com.vogella.eclipse.mcp.repository/target/repository 中。
概述(AI 翻译)
将运行中的 Eclipse IDE 转变为 MCP 服务器,使外部 LLM 客户端(Claude Code、Cursor 或任何支持 MCP 的代理)可以向 IDE 请求他们无法廉价从文件中重建的内容:已解析的 Java 模型、构建者的问题标记、调试器和实时工作台。
由vogella GmbH构建和维护,并用于我们的咨询服务以及基于AI的Java清理服务,用于遗留代码和代码优化。
服务器默认为禁用,仅在127.0.0.1监听,且拒绝所有未提交承载令牌的请求。
大多数工具都是只读的;每个改变某些东西的工具都会在自己的描述中说明,而那些默认预演的工具也会这样做。
安装
在Eclipse中,选择帮助安装新软件,添加>
并安装Eclipse MCP Server功能。 该网站仅提供最新版本;旧版本可通过Add > Archive作为每个GitHub版本附带的仓库压缩包获取。
建筑
需要JDK 25和Maven 3.9或更高版本。
p2 存储库最终会进入 update-site/com.vogella.eclipse.mcp.repository/target/repository。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Eclipse MCP Server
Turns a running Eclipse IDE into an MCP server, so that external LLM clients (Claude Code, Cursor, any MCP-capable agent) can ask the IDE for what they cannot cheaply reconstruct from files: the resolved Java model, the builder’s problem markers, the debugger and the live workbench.
Built and maintained by vogella GmbH, and used in our consulting and in our AI based Java cleanup services for legacy code and code optimization.
The server is disabled by default, listens on 127.0.0.1 only and rejects every request without the bearer token.
Most tools are read-only; every tool that changes something says so in its own description, and those that can default to a dry run do.
Installing
In Eclipse, choose Help > Install New Software, add
https://vogellacompany.github.io/eclipse-mcp-server/
and install the Eclipse MCP Server feature. The site carries the newest build only; older versions are available as the repository zip attached to each GitHub release, through Add > Archive.
Building
Requires JDK 25 and Maven 3.9 or newer.
mvn clean verify
The p2 repository ends up in update-site/com.vogella.eclipse.mcp.repository/target/repository.
To work on the code in Eclipse, import the projects with Search for nested projects enabled and set target-platform/com.vogella.eclipse.mcp.target/com.vogella.eclipse.mcp.target.target as the active target platform.
Every push to main publishes to the update site; pushing a v tag additionally creates a GitHub release with the repository zip.
Enabling the server
Preferences > General > MCP Server:
- Enable MCP server, off by default
- Port,
8642by default - Tool call timeout,
30seconds by default - UI thread wait,
25seconds by default: how long a tool waits for a busy UI thread before it withdraws the request, capped by the tool call timeout
Changes apply immediately. The page also shows the URL, the bearer token and the discovery file, and can regenerate the token. If the port is taken, the server stays down and the page says why; it never moves to another port behind a client’s back.
In an RCP application
The server starts through a declarative service, so an RCP application needs org.apache.felix.scr and a workspace, but no org.eclipse.ui.startup.
Install com.vogella.eclipse.mcp.core, com.vogella.eclipse.mcp.basic, com.vogella.eclipse.mcp.server and the third party bundles the feature lists; specialized provider bundles are optional and each adds its own tools.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →