Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| validate_code_standards | 验证给定的代码片段是否符合 M8 开发规范,返回不符合规范的问题列表和修改建议。 |
| create_page | 【推荐使用】一站式 M8 页面生成工具。自动完成:1.加载完整规范 2.生成代码 3.验证规范。用户只需描述页面需求即可,无需手动调用其他工具。 |
| create_ioc_page | 【低码组件生成】生成符合 M8 低码平台规范的组件代码。 🔴 重要:此工具会自动在项目根目录执行 npm run ioc create 命令创建组件! ⚠️ 【最重要】优先使用 em-组件库!:
📋 使用前必读 - 开发流程:
📁 生成的目录结构(自动创建):
📌 支持的配置项类型:
💡 配置设计建议:
|
| get_prompt | 获取配置给 AI (Cursor/Windsurf) 的最佳 System Prompt,包含核心规范和工具调用指令。建议将其复制到 .cursorrules 或 .windsurfrules 文件中。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |