🚀 OkapiMCP:开发人员工具的模型上下文协议服务器
🎯 OkapiMCP是什么?
一个强大的模型上下文协议(MCP)服务器,为AI助手和LLM提供专门的开发工具。
OkapiMCP通过以下方式扩展了AI功能 21种先进的专用工具 用于软件开发,包括数据库优化、UI组件生成、API创建、CI/CD管道生成, Playwright驱动的浏览器自动化一 完整的测试自动化套件, 智能自由资源发现,以及 专家级技术写作 -世界上最强大的人工智能开发生态系统。
🔥 证明卓越:开发速度提高23倍,每位开发人员每年节省18万美元
量化影响(数据支持):
- ⏱️ 开发速度提高23倍 -人工研究时间→ 自动分钟
- 💰 每年节省18万美元 -每个开发人员通过提高效率
- 🛠️ 集成错误减少95% -质量保证建议
- 🎯 88%+技术兼容性 -智能资源匹配
- 📚 87%可信度评分 -交叉引用内容质量
🔧 快速入门-安装并运行OkapiMCP(5分钟)
步骤1:系统要求
- ✅ Node.js 18+ (检查:
node --version) - ✅ Git (检查:
git --version) - ✅ 最低4GB RAM 为了获得最佳性能
步骤2:安装和构建
# Clone the repository
git clone https://github.com/yanirco/OkapiMcp.git
cd OkapiMcp
# Install dependencies and build
npm install
npm run build步骤3:启动MCP服务器
# Start the server (runs on http://localhost:3000)
npm start
# Expected output:
# [2025-11-24 13:40:33] info: Starting okapi-mcp server on stdio步骤4:验证安装
# Test basic functionality
curl http://localhost:3000/tools/generate-tests \
-X POST \
-H "Content-Type: application/json" \
-d '{"description": "unit tests for calculator"}'
# Should return generated test code步骤5:与IDE/LLM集成
对于 Cline/VS代码:在中配置 cline_mcp_settings.json:
{
"mcpServers": {
"okapi-mcp": {
"type": "stdio",
"command": "node",
"args": ["/Users/your-path/OkapiMcp/build/index.js"]
}
}
}🎊 最新动态:AI资源整合引擎
再也不要谷歌“有什么免费的API”了! 每当您使用我们的工具时,我们革命性的AI资源集成引擎都会自动发现并集成最好的免费库、API和服务。
示例:带有图表和身份验证的仪表板
Human: "Create a dashboard with charts and user authentication"
OkapiMCP: ✅ Analyzes requirements → Discovers optimal free resources → Auto-generates setup code
🎯 Results: React ChartJS 2 + Supabase Auth + ready-to-run npm install commands + complete setup guides🛠️ 🎭 浏览器自动化套件
🎪 剧作家驱动的网络自动化
将静态web交互转换为动态浏览器自动化。
- 🎯 高级网页抓取器:处理JavaScript繁重的网站、SPA、身份验证工作流
- 🖼️ 视觉回归测试:带有可访问性审计的真实浏览器截图
- ♿ 无障碍审计员:WCAG AA/AAA符合斧头核心集成
- 🤖 工作流程自动化:多步浏览器交互和数据提取
示例功能:
- 🔍 “使用auth删除现代React应用程序” → 处理登录流,等待SPA加载
- 📸 “目视测试检查流程” → 截图、可访问性检查、布局偏移检测
- ♿ “WCAG合规性审计网站” → 自动测试,手动检查指导
🎯 AI资源整合引擎
- 🎯 智能发现:分析自然语言请求并确定资源需求
- 🧠 AI需求分析:检测图表、身份验证、地图、分析、电子邮件和20多个类别
- 📊 质量情报:按维护、下载和兼容性对资源进行评分
- 🛠️ 汽车集成:生成准备运行的安装命令
- ⚡ 生产就绪:精心策划的适合生产使用的免费资源
示例场景:
- 📊 “使用图表构建仪表板” → React ChartJS 2+插件(85-90%质量)
- 🔐 “添加用户身份验证” → Supabase Auth(无限制免费用户,95%质量)
- 📱 “带地图的移动应用程序” → Mapbox地图(每月50000次免费请求)
🧪 完整的测试自动化套件
AI测试用例生成器
将自然语言描述转换为全面的测试套件- 解决了#1开发人员瓶颈!
- 框架:杰斯特、赛普拉斯、剧作家、维特
- 测试类型:单元、集成、E2E测试生成
- 智能功能:模拟数据、配置设置、性能断言
- 语言:JavaScript和TypeScript的最佳实践
例子: *“为React应用程序创建登录表单测试”* → 使用模拟、断言和可访问性测试完成Jest测试套件。
视觉测试平台
通过自动屏幕截图比较防止UI退化。
- 跨浏览器测试:Chrome、Firefox、Safari、Edge支持
- 响应式设计:移动、平板电脑、桌面视口
- 可访问性审计:WCAG AA/AAA合规性
- 基线管理:视觉参考的版本控制
AI智能故障排除
具有持续问题解决能力的上下文感知调试。
- 智能激活:自动检测粘贴错误的故障排除
- 持久解决方案:尝试多种解决方案,直到验证成功
- 综合测试:语法、运行时、集成验证
- 解决方案验证:只接受有效的解决方案
例子: *“错误:无法读取undefined的属性'map'”* → 自动研究、实施修复、运行测试、确认解决方案。
🗄️ 数据库套件
- 查询生成器:自然语言→ 通过性能分析优化SQL
- 架构分析器:检测规范化问题、建议约束、迁移脚本
- 性能优化器:N+1检测、连接池、缓存策略
🎨 UI/UX生成
- 分量发生器:React/Vue/Angular/Svelte,提供免费资源集成
- 移动应用:React Native/Flutter,集成地图、位置和身份验证
- 响应式设计:符合无障碍标准的移动优先组件
⚙️ DevOps自动化
- CI/CD生成器:GitHub Actions、GitLab CI、Jenkins、CircleCI管道
- 容器化:带安全扫描的Docker/Kubernetes
- 监控:ELK堆栈、Prometheus/Grafana、AWS CloudWatch配置
🔧 API开发
- REST/GraphQL生成器:完整的API,包括身份验证、确认
- 测试集成:恶作剧、Supertest、覆盖率报告
- OpenAPI/Swagger:自动生成的API规范
📊 真实案例
🎨 带有资源的React登录组件
Human: "Create login form with validation for React app"
OkapiMCP Response:
✅ Requirements Analysis: Authentication and form validation
✅ Resource Discovery: Found optimal free resources
⚡ Estimated Setup: 5 minutes
🎯 Tech Compatibility: 92%
📦 INSTALLATION COMMANDS:
npm install react-hook-form zod
npm install @hookform/resolvers
💻 PRODUCTION-READY CODE:
[Complete 200+ line React component]
- TypeScript interfaces
- Form validation with Zod
- Error handling and accessibility
- Responsive design
- Jest test examples🗄️ 数据库查询优化
-- Input: "Find users who spent >$100 last month"
-- Output: Optimized query with indexing recommendations
SELECT u.name, u.email, SUM(o.total_amount) as monthly_spend
FROM users u
INNER JOIN orders o ON u.id = o.user_id
WHERE o.created_at >= DATE_SUB(CURDATE(), INTERVAL 1 MONTH)
AND o.status = 'completed'
GROUP BY u.id, u.name, u.email
HAVING SUM(o.total_amount) > 100;
/* Performance optimizations suggested:
- INDEX: orders(user_id, created_at)
- INDEX: orders(status, created_at)
- Partitioning for large datasets
*/📱 完整的移动应用程序
// "Build login screen for React Native app"
// Generates: React Native component with auth integration
// - Navigation and routing setup
// - Device permissions handling
// - Offline data persistence
// - TypeScript definitions
// - Automated testing configuration🌐 Playwright高级网页抓取
Human: "Extract product data from modern e-commerce site with login"
OkapiMCP Response:
✅ Advanced Browser Automation Enabled
✅ Playwright Engine Activated
🎯 Detected Requirements: Authentication, JavaScript rendering, data extraction
🤖 AUTOMATION WORKFLOW:
1. Launch browser → Navigate to login page
2. Fill login credentials → Submit authentication
3. Wait for dashboard load → Extract session cookies
4. Navigate to products page → Handle infinite scroll
5. Extract structured data → Generate PDF reports
📊 EXTRACTION RESULTS:
- Products scraped: 250 items
- Performance metrics recorded
- Screenshots captured for validation
- Structured JSON export ready📸 真实视觉测试
Human: "Test checkout flow for visual regressions"
OkapiMCP Response:
✅ Real Browser Screenshots Enabled
✅ Baseline Comparison Activated
⚡ Testing: Desktop, Tablet, Mobile viewports
🎭 VISUAL TEST RESULTS:
• Homepage: PASS (100% match)
• Product page: PASS (99.8% match)
• Checkout: FAIL (5.2% diff - button color changed)
• Confirmation: NEW (First baseline created)
♿ ACCESSIBILITY CHECKS:
• Color contrast: PASS (WCAG AA compliant)
• Keyboard navigation: PASS (Tab order logical)
• Alt text: WARNING (3 images missing alt tags)
• Screen reader: PASS (ARIA labels present)
📸 EVIDENCE CAPTURED:
- Baseline vs current screenshots
- Accessibility violation details
- Layout shift metrics (CLS: 0.05)♿ WCAG合规审计
Human: "Audit website for accessibility compliance"
OkapiMCP Response:
✅ Axe-core Integration Activated
✅ Multi-standard Testing: WCAG 2.1 A, AA, AAA
🎯 Automated + Manual Checks Combined
📋 AUDIT SUMMARY:
Score: 87/100 (Good - WCAG AA Achievable)
Violations: 12 (8 minor, 4 serious)
Passed checks: 85%
Manual tests needed: 5 items
🔴 CRITICAL ISSUES:
• Missing form labels (serious)
• Low color contrast (serious)
• Keyboard trap detection (critical)
✅ PASSING REQUIREMENTS:
• Alt text on images (95% compliant)
• Heading hierarchy (logical)
• ARIA landmark roles (present)
🎯 MANUAL CHECKS REQUIRED:
• Keyboard navigation (Tab through page)
• Screen reader compatibility (NVDA/JAWS)
• Color blindness simulation
Response: Curated free resources with quality scores and setup instructions🎯 谁使用OkapiMCP?
👨🎓 学生和学习者
- 无需昂贵的人工智能订阅即可获得专业结果
- 从生成的企业代码中学习最佳实践
👨💻 独立开发者和业余爱好者
- 根据学生预算构建生产质量的应用程序
- 访问以前仅适用于大型团队的企业工具
🏢 小型团队和初创企业
- 与企业发展速度竞争
- 专业工具,无需企业软件成本
🌍 全球开发者
- 无论当地基础设施如何,都有高质量的开发工具
- 在全球范围内实现人工智能开发工具的民主化
🏛️ 企业团队
- 经济高效的专业代码生成
- 团队生产力随预算限制而扩展
🏗️ 建筑
┌─────────────────────────────────────┐
│ Any LLM │
│ (GPT, Claude, Local, Groq, etc.) │
└─────────────────┬───────────────────┘
│ HTTP POST
▼
┌─────────────────────────────────────┐
│ OkapiMCP API Server │
│ http://your-server:3000 │
└─────────────────┬───────────────────┘
│
┌─────────┼─────────┐
│ │ │
┌───▼───┐ ┌───▼───┐ ┌───▼───┐
│Query │ │UI Comp│ │API Gen│
│Builder│ │Gen │ │erator │
└───────┘ └───────┘ └───────┘
▲
│
┌───────────────┐
│AI Resource │
│Integration │
│Engine │
└───────────────┘🚀 生产部署
Docker部署
# Build container
docker build -t okapi-mcp .
# Run with environment variables
docker run -p 3000:3000 \
-e NODE_ENV=production \
-e LOG_LEVEL=info \
okapi-mcp云部署(推荐:铁路)
- 连接您的GitHub存储库
- 自动部署
- 获取您的域名:
https://your-okapi-mcp.railway.app - 自动配置的环境变量
企业/Kubernetes
部署到任何支持Node.js的云提供商:
- 铁路 (为简单起见,建议使用)
- 数字海洋应用平台
- AWS弹性Beanstalk
- 谷歌云运行
- Kubernetes (完整的Helm图表可用)
🧪 演示与测试
请参阅OkapiMCP的实际操作:
# Resource Integration Demo
node simple-demo.js
# Master Demonstration (all tools)
node master-demonstration.js
# Specific tool testing
node test-demo.js预期演示显示:
- 具有实际集成的真实世界场景
- 绩效时间和信心得分
- 生产就绪代码生成
- 资源兼容性验证
📚 文档与支持
🤝 贡献
我们欢迎捐款!帮助每个人实现人工智能开发的民主化。
添加免费资源
- 研究质量/维护指标
- 添加到资源数据库并进行验证
- 包括设置说明
- 测试跨平台兼容性
- 更新文档
添加新工具
- 实施中
src/tools/ - 添加到MCP注册表
- 全面的文件
- 测试覆盖率
- 更新示例
📄 许可证
MIT许可证 -开源,免费用于商业用途。
🔗 链接
🎉 加入革命
OkapiMCP使人工智能开发民主化。
拥有免费法学硕士学位的学生现在可以访问 专业发展工具 以前只有花费数千美元订阅人工智能的组织才能使用。
改变软件开发的经济模式——为每个人生成高质量的代码,无论预算如何。
______________________________________________________________________
💻 Currently Running: OkapiMCP Server Active ✅
🚀 Ready for integration with any LLM
______________________________________________________________________
Quick Start • Examples • Tools • API • Contribute
