MCP工程服务器(ARCHIVE CUZ ANTHROPIC只需复制我所有的跨学科属性,他们/命令就可以让我所有的思维伙伴看到他们的新版本,并将其想法与此报告时间线进行比较,你会理解Anthropics阻止我的想法有多大的打击)
用于人工智能辅助工程工作流程的MCP(模型上下文协议)服务器和Claude Code插件。
特性
- 自动检测项目类型:支持20多种项目类型(Node.js、.NET、Python、Rust、Go、Embedded等)
- 安全扫描:在提交前检测机密、API密钥和凭据
- 函数索引:跨TypeScript、Python、C#、Go、Rust、C/C的索引和搜索函数++
- 重复检测:查找重复的代码块以进行重构
- 路线索引:索引API路由(Express、Flask、FastAPI、ASP.NET、Go)
- 硬件索引:索引嵌入式硬件配置(STM32、ESP32、Arduino)
- 知识库:从已完成的功能中提取和查询学习内容
- 会话管理:克劳德会议期间保存上下文的检查点
- 多时段协调:具有文件锁定的并行Claude实例
安装
快速安装(推荐)
npm install -g mcp-engineering-server
mcp-engineering-server install就是这样!install命令将:
- 将斜线命令复制到
~/.claude/commands/(全球) - 使用Claude Code注册MCP服务器
来自源头
git clone https://github.com/liam1472/mcp-engineering-server.git
cd mcp-engineering-server
npm install && npm run build
# Install globally
npm link
mcp-engineering-server install卸载
mcp-engineering-server uninstall
npm uninstall -g mcp-engineering-server斜杠命令
核心工作流程
| 命令 | 描述 |
|---|---|
/eng-init | 初始化项目,自动检测类型 |
/eng-scan | 构建功能指标 |
/eng-security | 扫描机密和凭据 |
/eng-security --fix | 自动修复:创建.env、替换secrets、备份文件 |
/eng-security --fix --dry-run | 预览--修复将更改的内容 |
/eng-start | 开始开发功能 |
/eng-validate | 运行验证管道 |
/eng-done | 完整和存档功能 |
/eng-search | 搜索索引函数 |
分析与重构
| 命令 | 描述 |
|---|---|
/eng-refactor | 分析代码以寻找重构机会 |
/eng-refactor --fix | 自动修复:添加常量,备份文件 |
/eng-refactor --fix --dry-run | 预览--修复将更改的内容 |
/eng-review | 竣工前检查表(安全、构建、测试) |
/eng-deps | 分析依赖关系,检测循环导入 |
/eng-pipeline | 运行完整的验证管道(构建、lint、测试) |
/eng-duplicates | 检测重复代码块 |
索引
| 命令 | 描述 |
|---|---|
/eng-index-function [query] | 搜索索引函数 |
/eng-index-similar | 查找类似的代码片段 |
/eng-routes | API路线索引(web项目) |
/eng-hardware | 索引硬件配置(嵌入式) |
/eng-knowledge [query] | 查询知识库 |
会话管理
| 命令 | 描述 |
|---|---|
/eng-checkpoint | 保存会话检查点 |
/eng-resume | 从检查点恢复 |
/eng-session-start | 启动并行会话 |
/eng-session-status | 查看活动会话 |
/eng-session-switch | 在会话之间切换 |
/eng-session-sync | 在会话之间同步发现 |
/eng-lock | 锁定文件进行编辑 |
/eng-unlock | 解锁文件 |
工作流程和场景
场景1:新项目设置
首次在项目中使用该插件:
/eng-init # Auto-detect project type, create .engineering/
/eng-scan # Index all functions in codebase
/eng-security # Check for any existing secrets/credentials发生了什么:
.engineering/使用config创建的目录- 检测到的项目类型(例如。,
web-node,embedded-stm32,python-fastapi) - 功能指标建立在
.engineering/index/functions.yaml - 已生成安全报告
______________________________________________________________________
场景2:功能开发(标准流程)
从始至终致力于新功能:
# 1. Start feature - creates context directory
/eng-start user-authentication
# 2. Work on your code...
# Claude assists with implementation
# 3. Before committing - validate everything
/eng-validate # Runs: security scan + index update + status check
# 4. If security issues found
/eng-security --fix # Auto-create .env, replace hardcoded secrets
# 5. Complete feature - archives context, extracts knowledge
/eng-done发生了什么:
- 功能目录创建于
.engineering/features/user-authentication/ - 跟踪进展情况
progress.yaml - 开
/eng-done:存档到.engineering/archive/,将学习内容提取到知识库中
______________________________________________________________________
场景3:安全审计
在推送到git之前查找并修复秘密:
# Scan for secrets
/eng-security
# Preview what auto-fix would do (safe, no changes)
/eng-security --fix --dry-run
# Apply fixes: create .env, replace secrets in code, backup originals
/eng-security --fix输出示例:
Security Scan Results:
CRITICAL: 2 findings
- src/config.ts:15 - Hardcoded API key (OPENAI_API_KEY)
- src/db.ts:8 - Database password in connection string
Run `/eng-security --fix` to auto-remediate______________________________________________________________________
场景4:代码分析和重构
查找代码质量问题:
# Find magic numbers, duplicate code, refactoring opportunities
/eng-refactor
# Preview auto-fix
/eng-refactor --fix --dry-run
# Apply fixes: extract constants, add config files
/eng-refactor --fix
# Find duplicate code blocks
/eng-duplicates
# Analyze dependencies, find circular imports
/eng-deps______________________________________________________________________
场景5:搜索和发现
在大型代码库中查找代码:
# Search functions by name or description
/eng-search "authentication"
/eng-search "parse JSON"
# Find similar code blocks (for refactoring)
/eng-index-similar "function validateUser(email, password)"
# Query knowledge base from past features
/eng-knowledge "how did we handle rate limiting"
# Index and search API routes (web projects)
/eng-routes
# Index hardware peripherals (embedded projects)
/eng-hardware______________________________________________________________________
场景6:会话管理
在Claude会话中保留上下文:
# Save checkpoint before ending session
/eng-checkpoint
# ... close Claude, come back later ...
# Resume from checkpoint (restores context)
/eng-resume______________________________________________________________________
场景7:并行开发(多会话)
多个Claude实例在同一代码库上工作:
# Terminal 1: Start session A
/eng-session-start A
/eng-lock src/auth/login.ts # Lock file to prevent conflicts
# Terminal 2: Start session B
/eng-session-start B
/eng-lock src/auth/register.ts # Lock different file
# Check all sessions and locks
/eng-session-status
# Sync discoveries between sessions
/eng-session-sync
# When done, unlock files
/eng-unlock src/auth/login.ts会话状态输出:
Active Sessions:
A: Working on src/auth/login.ts (locked)
B: Working on src/auth/register.ts (locked)
C: Inactive
Locked Files:
- src/auth/login.ts (Session A)
- src/auth/register.ts (Session B)______________________________________________________________________
场景8:提交前审查
创建PR前的最终检查:
# Run full validation pipeline
/eng-pipeline # build + lint + test + security
# Or run review checklist
/eng-review # Shows: security status, test status, build status评审输出:
Pre-Completion Review:
[x] Security scan passed
[x] Build successful
[x] Tests passing (48/48)
[ ] Lint warnings: 3
Recommendation: Fix lint warnings, then ready for /eng-done______________________________________________________________________
快速参考
| 目标 | 命令 |
|---|---|
| 设置新项目 | /eng-init → /eng-scan |
| 启动功能 | /eng-start |
| 寻找秘密 | /eng-security |
| 修复秘密 | /eng-security --fix |
| 搜索代码 | /eng-search |
| 查找重复项 | /eng-duplicates |
| 检查依赖关系 | /eng-deps |
| 保存进度 | /eng-checkpoint |
| 恢复工作 | /eng-resume |
| 最终验证 | /eng-validate 或 /eng-pipeline |
| 完整功能 | /eng-done |
生成的结构
运行后 /eng-init一 .engineering/ 目录已创建:
.engineering/
├── config.yaml # Project config
├── index/
│ ├── functions.yaml # Function index
│ ├── routes.yaml # API routes (web)
│ ├── hardware.yaml # Hardware configs (embedded)
│ └── duplicates.yaml # Duplicate code report
├── sessions/ # Session data (gitignore this)
├── security/
│ ├── patterns.yaml # Detection patterns
│ └── whitelist.yaml # False positive whitelist
├── knowledge/
│ └── base.yaml # Extracted learnings
├── features/ # Active features
└── archive/ # Completed features支持的项目类型
| 类型 | 检测 |
|---|---|
web-node | package.json |
web-react | package.json+反应 |
web-vue | package.json+vue |
web-angular | angular.json |
dotnet-aspnet | \*.csproj+ASP。NET |
dotnet-maui \*.csproj+MAUI。 | |
python-django | manage.py |
python-fastapi | main.py+fastapi |
rust | Cargo.toml |
go | go.mod |
embedded-stm32 | \*.ioc |
embedded-esp | sdkconfig |
mobile-flutter | pubspec.yaml |
mobile-react-native | package.json中的原生反应 |
安全模式
安全扫描程序检测到:
- AWS访问密钥和密钥
- GCP API密钥
- Azure存储密钥
- OpenAI/人类API密钥
- JWT代币
- 数据库连接字符串(MongoDB、PostgreSQL、MySQL)
- RSA/SSH私钥
- 硬编码密码
需求
- Node.js>=18.0.0
- 克劳德代码(VS代码扩展或CLI)
许可证
麻省理工学院
