Skip to main content

面向 yudao 生态的 MCP 智能开发助手

Project description

Yudao Pilot MCP

中文 | English

中文

Yudao Pilot MCP 是面向 yudao / ruoyi-vue-pro 生态的工作区感知型 MCP 服务。它帮助 AI 编码工具识别本地后端、前端、数据库和代码生成目标,让 AI 生成的代码准确落到正确项目结构里。

严肃声明

yudaoruoyi-vue-pro 生态与 ruoyi / RuoYi / 若依原生生态不是同一个项目。当前 MCP 只支持 yudaoruoyi-vue-proruoyi-vue-pro-jdk17yudao-cloud 相关项目,不支持若依原生生态项目。

核心价值

  • 让 AI 不再猜 yudao 项目目录和生成位置
  • .yudao-pilot/config.yaml 固化后端、前端和数据库配置
  • 基于项目指纹校验路径,避免代码写错仓库或模块
  • 生成菜单、字典、H2 测试 SQL 和前后端骨架代码
  • 当工作目录不明确时停止初始化,并要求 AI 先询问真实项目目录

快速使用

  1. 安装命令行入口。
git clone https://github.com/woodynew/yudao-pilot-mcp.git
cd yudao-pilot-mcp
uv tool install .
  1. 在 MCP 客户端中注册服务。
{
  "mcpServers": {
    "yudao-pilot": {
      "command": "yudao-pilot",
      "args": []
    }
  }
}
  1. 在你的 yudao 工作区中让 AI 先调用 load_workspace_config。首次使用会生成 .yudao-pilot/config.yaml,并要求确认识别到的后端和前端路径。

  2. 确认配置后,典型流程是:

load_workspace_config
validate_workspace_projects
inspect_codegen_context
generate_codegen_scaffold(write_files=true)

如果用户明确要求“先预览”,则调用:

generate_codegen_scaffold(write_files=false)

此时预览产物会写入 .yudao-pilot/previews/ 下的临时目录,不会影响项目现有代码。

文档

English

Yudao Pilot MCP is a workspace-aware MCP server for the yudao / ruoyi-vue-pro ecosystem. It helps AI coding tools understand local backend projects, frontend targets, database configuration, and code-generation routes so generated code lands in the right place.

Important Notice

The yudao / ruoyi-vue-pro ecosystem is not the same project as the original ruoyi / RuoYi ecosystem. This MCP currently supports yudao, ruoyi-vue-pro, ruoyi-vue-pro-jdk17, and yudao-cloud projects only. It does not support original RuoYi projects.

Core Value

  • Stop AI tools from guessing yudao project paths
  • Use .yudao-pilot/config.yaml as the routing source of truth
  • Validate backend and frontend paths with project fingerprints
  • Generate menu SQL, dictionary SQL, H2 test SQL, and backend/frontend scaffolds
  • Refuse unsafe initialization when the project workspace is unknown

Quick Start

  1. Install the command.
git clone https://github.com/woodynew/yudao-pilot-mcp.git
cd yudao-pilot-mcp
uv tool install .
  1. Register the MCP server in your client.
{
  "mcpServers": {
    "yudao-pilot": {
      "command": "yudao-pilot",
      "args": []
    }
  }
}
  1. Ask the AI client to call load_workspace_config from your yudao workspace. On first use, Yudao Pilot creates .yudao-pilot/config.yaml and asks the AI to confirm detected backend and frontend paths.

  2. After configuration is confirmed, the common flow is:

load_workspace_config
validate_workspace_projects
inspect_codegen_context
generate_codegen_scaffold(write_files=true)

If the user explicitly asks to preview first, call:

generate_codegen_scaffold(write_files=false)

Preview artifacts are written under .yudao-pilot/previews/ and do not touch the existing project code.

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yudao_pilot_mcp-0.1.0.tar.gz (126.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yudao_pilot_mcp-0.1.0-py3-none-any.whl (87.3 kB view details)

Uploaded Python 3

File details

Details for the file yudao_pilot_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: yudao_pilot_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 126.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yudao_pilot_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c26a80d88f72bb186d94d627de22236f232ab4c0cc801f76b51a032f7c59b0d
MD5 fb6bca59bc715e947c3fe94ac0a43a9e
BLAKE2b-256 01e7cbb4967fe7ca9ad62ec6ff685153ee8937a6f73625b6fd3d0899eaef1f06

See more details on using hashes here.

Provenance

The following attestation bundles were made for yudao_pilot_mcp-0.1.0.tar.gz:

Publisher: release.yml on chanshawoh/yudao-pilot-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yudao_pilot_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: yudao_pilot_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 87.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for yudao_pilot_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 295293034cbec644a8b5be669ca3536e762940d275113c14bafb85fbe8335339
MD5 09b2bf3107b424299de8ab9d9f29d748
BLAKE2b-256 3575e2f9ed9544a6673a215e18a55cc70103b0b508f8bce0fd7fe15172995ac5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yudao_pilot_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on chanshawoh/yudao-pilot-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page