易语言 Universal MCP
Enables compatible MCP AI tools to read, write, design windows, and run programs in the E-Language IDE.
README
易语言 Universal MCP(allmcp)
让任何兼容 MCP 协议的 AI 工具直接在易语言 5.95 里读代码、写代码、设计窗口并运行程序。
支持的客户端包括 Claude Code / Claude Desktop、Cursor、Codex CLI、Kimi 以及任何遵循 Model Context Protocol 的工具——本服务是标准 stdio MCP 服务,不绑定任何单一 AI 厂商。
本项目 fork 自 KaiGe7384/e-language-codex-mcp(MIT),在其基础上做了通用化改造:去除 Codex 专属注册逻辑,安装脚本支持多客户端一键注册,并向任意 MCP 工具输出通用配置。感谢原作者的工作。
它不是鼠标脚本,也不会修改 .e 二进制格式。所有 IDE 操作都走易语言官方支持库 API,界面数据保存为可审查的 UTF-8 .eui.json。

能做什么
- 读取和批量修改当前易语言工程代码。
- 新建可直接运行的
windows-ui工程。 - 在易语言内使用 EUI 可视设计器设计窗口,支持拖拽、属性编辑和撤销重做。
- 保存、默认运行、停止程序;只有明确要求时才编译成品。
- 读取编译输出和事件追踪,定位语法错误与无响应按钮。
- 在同一个支持库中提供 222 条 Rust 实现的中文扩展命令。

三步安装
前提:Windows 10/11 x64、易语言 5.95、Node.js 20+,以及任意一个兼容 MCP 的 AI 工具。
- 从 Releases 下载 ZIP,完整解压后双击
安装.bat。 - 打开易语言,在"工具 → 支持库配置"中勾选"Codex MCP IDE桥接支持库"。
- 重启易语言一次,再重启你的 AI 工具或新建任务。
安装脚本默认 -Client auto:检测到 Codex 会自动注册;也可以用 -Client codex,claude,cursor 同时注册多个客户端,并且总会打印一段通用 MCP JSON 配置,可直接粘贴进 Kimi、Claude Code、Continue 等任何其他工具。详见 安装文档。
安装支持库时需要关闭易语言一次。安装完成后的日常写代码、运行和调试不需要反复关闭 IDE。
通用 MCP 配置(任意客户端)
如果你的 AI 工具不在自动注册列表里,把下面这段加入它的 MCP 配置即可(路径以实际安装位置为准):
{
"mcpServers": {
"e-language": {
"command": "node",
"args": ["%LOCALAPPDATA%\\E-Language-Universal-MCP\\server.mjs"],
"env": {
"E_LANGUAGE_RUNTIME_DLL": "%LOCALAPPDATA%\\E-Language-Universal-MCP\\eui_runtime.dll"
}
}
}
}
怎么用
在你的 AI 工具中直接描述需求,例如:
用易语言新建一个 windows-ui 程序,做一个文件哈希工具。先设计界面并写事件代码,完成后默认运行,不要编译成品。
常用 MCP 工具:
| 目标 | 工具 |
|---|---|
| 查看连接和活动工程 | ide_status、project_get_active |
| 新建 UI 工程 | project_new,选择 windows-ui |
| 读取和修改代码 | code_read_current、code_apply_current、code_batch |
| 修改可视界面 | ui_get_document、ui_apply_batch、ui_sync_code |
| 保存和运行 | project_save、build_run、build_stop |
| 按需编译和读错误 | build_compile、build_get_diagnostics |

Rust 扩展能力
支持库共 223 条命令,其中 222 条为通用扩展能力,按中文前缀分成 21 类:文本、JSON、文件、目录、路径、系统、网络、密码与密钥、压缩、媒体、图片等。
代表能力包括 SHA-256/BLAKE3、Argon2id、AES-GCM、Ed25519、X25519、JWT、MessagePack、CBOR、Zstandard、二维码、图片感知哈希、SimHash 和雪花 ID。完整列表见 扩展命令说明。
示例
示例的 .eui.json 与 .e 文件放在同一目录。运行时 MCP 会自动部署 eui_runtime.dll。
安全边界
- 不使用
SendInput、坐标点击或键鼠模拟。 - 不逆向调用 IDE 内部函数。
- 不解析或直接改写
.e二进制工程。 - 工程切换前先调用官方保存接口,避免"是否保存关闭"弹窗。
- 所有写工具带修订号,过期内容会拒绝覆盖。
- 普通旧工程不会被强行注入 UI 脚手架;UI 项目请使用
windows-ui模板。
已知限制
- 当前针对易语言 5.95、单个已保存活动工程和单个启动窗口。
code_compact_current只提供只读预览,不执行不可靠的批量删除。- IDE 输出控件无法识别时,只返回编译成败,不进行界面自动化兜底。
- 易语言支持库内部的命令名(如
Codex_桥接状态)保留原标识以兼容预编译二进制,仅是内部命名,不影响任何 AI 工具连接。
从源码构建
需要 Visual Studio x86 C++ Build Tools、Windows SDK、Rust 和 i686-pc-windows-msvc 目标。
rustup target add i686-pc-windows-msvc
npm.cmd install
npm.cmd run build:all
npm.cmd run test:all
npm.cmd run check
贡献前请阅读 CONTRIBUTING.md。
许可证
MIT License,保留上游 KaiGe7384/e-language-codex-mcp 的版权声明。
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.