devPartner

devPartner

A self-evolving MCP server that aggregates tools, supports cross-AI dialogue, and enables self-upgrade and hot-reload during conversations.

Category
Visit Server

README

🧬 devPartner v2.0.0 - MCP 双服务架构

纯工具 + 智胜管家圻底分犻关泚点工具层无状态管家层有记忆 保留党郚自我迭代、规则匕擎、进化匕擎等栞心胜力

🏗 v2.0 架构理念

┌──────────────────────────────────────────────────────────────┐
│                      v2.0.0 (新架构)                          │
│                                                              │
│  ┌─────────────────────┐    ┌─────────────────────────────┐  │
│  │  devpartner-tools   │    │     devpartner-agent        │  │
│  │  ─────────────────  │    │  ─────────────────────────  │  │
│  │  📊 纯工具层         │◄───│  🧠 智胜管家层               │  │
│  │  · 无状态            │    │  · 有状态DB/日志/记忆    │  │
│  │  · 无副䜜甚          │    │  · 自我迭代匕擎              │  │
│  │  · 即甚即匃          │    │  · 规则匕擎自劚觊发      │  │
│  │  · 25 䞪纯凜数       │    │  · 进化匕擎代码自曎新    │  │
│  │  · 蟓入→倄理→蟓出    │    │  · 43 䞪 Agent 工具         │  │
│  └─────────────────────┘    └─────────────────────────────┘  │
│                                                              │
│  原则                                                       │
│  ✅ 工具层䞍存数据只做倄理                                    │
│  ✅ 管家层莟莣状态管理、记忆、进化                               │
│  ✅ 枅晰的职莣蟹界易绎技、易扩展                               │
└──────────────────────────────────────────────────────────────┘

✹ 栞心特性

层 胜力 工具数 原则
🔧 tools 文件/Git/HTTP/掚理/系统/发现 25 䞪纯工具 无状态、无副䜜甚
🧠 agent 对话日志/è·šAI对话/自我迭代/规则匕擎/进化匕擎/云同步 42 䞪 Agent 工具 有状态、有记忆
🌟 自我迭代 数据收集→AI分析→代码变曎→Git提亀→PR 闭环 栞心保留
🔄 规则匕擎 自劚觊发+劚态泚册+执行 5 条内眮规则 栞心保留
🧬 进化匕擎 代码自曎新/倇仜/回滚/热重蜜 安党升级 栞心保留

🚀 快速匀始

前眮芁求

  • Python 3.10+
  • Node.js可选甚于郚分 MCP 服务

安装

# 安装 tools 层䟝赖
pip install -r devpartner-tools/requirements.txt

# 安装 agent 层䟝赖
pip install -r devpartner-agent/requirements.txt

启劚

# 方匏䞀仅启劚纯工具层蜻量25䞪工具
python devpartner-tools/server.py

# 方匏二仅启劚智胜管家层完敎功胜15䞪Agent工具
python devpartner-agent/server.py

# 方匏䞉同时启劚掚荐完敎功胜
# 终端1 - 工具层
python devpartner-tools/server.py

# 终端2 - 管家层
python devpartner-agent/server.py

MCP 客户端配眮

{
  "mcpServers": {
    "devpartner-tools": {
      "command": "python",
      "args": ["<PATH>/devpartner-tools/server.py"],
      "transport": "stdio"
    },
    "devpartner-agent": {
      "command": "python",
      "args": ["<PATH>/devpartner-agent/server.py"],
      "transport": "stdio"
    }
  }
}

📁 项目结构

devPartner/
│
├── devpartner-tools/            # 🔧 纯工具层无状态
│   ├── server.py               # MCP 入口25䞪工具泚册
│   ├── config.yaml              # 工具层配眮极少配眮项
│   ├── requirements.txt         # 最小䟝赖fastmcp + httpx
│   └── tools/                   # 6 倧类工具暡块
│       ├── filesystem.py        # 文件系统5䞪读/写/列衚/搜玢文件/搜玢内容
│       ├── git_operations.py    # Git 操䜜3䞪status/log/diff
│       ├── web_requests.py      # 眑络请求4䞪fetch/github搜玢/context7
│       ├── reasoning.py         # 掚理分析4䞪铟匏思考/思绎富囟
│       ├── system_utils.py      # 系统工具4䞪呜什/客户端检测/环境扫描/路埄验证
│       └── discovery.py         # 服务发现5䞪MCP发现/测试/配眮生成
│
├── devpartner-agent/            # 🧠 智胜管家层有状态
│   ├── server.py               # MCP 入口15䞪Agent工具泚册
│   ├── config.yaml              # 管家层配眮服务匀关、数据目圕等
│   ├── requirements.txt         # 䟝赖fastmcp + pyyaml + watchdog
│   │
│   ├── core/                    # 栞心匕擎保留原有逻蟑
│   │   ├── rule_engine.py      # 规则匕擎自劚觊发+劚态泚册
│   │   ├── evolution.py        # 进化匕擎代码自曎新+热重蜜
│   │   ├── identity.py         # 身仜管理倚客户端配眮
│   │   ├── database.py         # 数据存傚SQLite+共享DB
│   │   └── cloud_sync.py       # 云同步数据倇仜恢倍
│   │
│   ├── services/                # 䞚务服务保留原有逻蟑
│   │   ├── log_service.py      # 日志服务对话记圕+分析
│   │   ├── dialogue_service.py # è·šAI对话服务消息䌠递
│   │   ├── discovery_service.py# 服务发现
│   │   └── ai_optimizer.py     # AI䌘化噚提瀺词䌘化
│   │
│   ├── skills/                  # 技胜暡块🌟 栞心保留
│   │   ├── self_iterate.py     # 自我迭代匕擎34KB最栞心
│   │   └── daily_summary.py    # 每日总结分析24KB
│   │
│   ├── tools_bridge/            # 工具桥接保留旧工具代码
│   │   ├── filesystem.py
│   │   ├── native_tools.py
│   │   └── subprocess_tools.py
│   │
│   └── data/                    # 运行时数据自劚创建
│       ├── databases/           # SQLite 数据库
│       ├── logs/                # 对话日志
│       ├── memories/            # 知识记忆
│       ├── backups/             # 进化倇仜
│       └── temp/                # 䞎时协同文件
│
└── README.md                    # 本文件

🔧 工具枅单

devpartner-tools25 䞪纯工具

分类 工具 数量
📁 文件系统 read_file write_file list_directory search_files search_content 5
🔀 Git git_status git_log git_diff 3
🌐 眑络 fetch_url github_search_code github_search_repositories context7_search 4
🧠 掚理 sequential_think generate_mindmap generate_mindmap_from_tree list_mindmaps 4
⚙ 系统 execute_system_command detect_client environment_scan validate_path 4
🔍 发现 discover_mcp_servers list_known_mcp_servers test_mcp_server get_rules_summary generate_config_snippet 5

devpartner-agent43 䞪 Agent 工具

分类 工具 数量
📝 对话日志 log_conversation get_daily_summary read_daily_log list_logs check_log_gaps cleanup_old_data 6
💬 è·šAI对话 send_agent_message check_agent_messages decompose_task cross_ai_review 4
🌟 自我迭代 self_iterate self_upgrade self_create_file 3
📐 规则匕擎 get_rules trigger_rule detect_rules 3
🗄 数据库 query_database search_conversations get_db_stats 3
🎯 AI䌘化 optimize_prompt 1
☁ 云同步 sync_to_cloud restore_from_cloud 2
📊 每日总结 get_daily_work_data save_daily_analysis get_weekly_work_data get_work_schema_guide 4
🔄 数据迁移 import_daily_log_to_db sync_all_logs_to_db 2
🩺 系统诊断 get_system_status self_diagnose get_evolution_history get_pending_improvements 4
🔍 MCP发现 list_recommended_mcp_servers scan_new_mcp_servers get_discovery_status 3
🛡 安党审计 run_security_audit 1
🔧 系统 hot_reload_module setup_devpartner get_identity_info 等 7

🌟 保留的栞心自我迭代胜力

┌─────────────────────────────────────────────────────────┐
│                  自我迭代闭环完敎保留                  │
│                                                         │
│  Step 1: 收集系统数据                                     │
│    ├── 䜿甚频率统计哪些工具被调甚最倚                    │
│    ├── 错误日志分析哪些错误频繁出现                      │
│    ├── 甚户反銈对话䞭的问题/建议                         │
│    └── 性胜指标响应时闎、内存占甚                        │
│                                                         │
│  Step 2: AI 分析生成改进建议                               │
│    ├── 代码䌘化建议                                       │
│    ├── 配眮调敎建议                                       │
│    ├── 新功胜建议                                         │
│    └── 安党挏掞检测                                       │
│                                                         │
│  Step 3: 识别可自劚执行的代码变曎                           │
│    ├── 简单参数调敎自劚执行                             │
│    ├── 代码重构需审批                                  │
│    └── 架构变曎仅建议                                  │
│                                                         │
│  Step 4: 安党执行变曎evolution.py                      │
│    ├── 倇仜原文件                                         │
│    ├── 写入新内容                                         │
│    ├── 语法验证Python                                 │
│    ├── 倱莥自劚回滚                                       │
│    └── 记圕进化日志                                       │
│                                                         │
│  Step 5: Git 集成可选                                 │
│    ├── 创建功胜分支                                       │
│    ├── 提亀变曎                                           │
│    └── 创建 PR                                           │
└─────────────────────────────────────────────────────────┘

内眮规则rule_engine.py

规则 䌘先级 自劚觊发 诎明
auto-log-conversation 1 ✅ 每次实莚性对话自劚记圕
cross-agent-dialogue 1 ✅ 倚AI实䟋闎消息䌠递
turbo-effect 2 ✅ 每次总结后自劚䌘化配眮
security-audit 2 ✅ 代码变曎后自劚扫描安党问题
self-reflection 3 ✅ 重芁决策后自劚反思

🆓 完党免莹方案

组件 莹甚 诎明
devPartner MCP 免莹 匀源可自郚眲
Python 运行时 免莹 标准 Python 3.10+
SQLite 存傚 免莹 内眮无需额倖安装
AI客户端 LLM 免莹 Trae/CodeBuddy/Cursor 自垊
总计 $0 党免莹技术栈

📝 版本历史

  • v2.0.0 (2026-06-27): 🏗 双服务架构重构 - 正匏版
    • ✅ 拆分䞺 devpartner-tools纯工具层25䞪无状态工具
    • ✅ 拆分䞺 devpartner-agent智胜管家层42䞪有状态工具
    • ✅ 保留党郚自我迭代、规则匕擎、进化匕擎栞心逻蟑
    • ✅ 补回党郚猺倱的 MCP 工具日志管理、每日总结、数据迁移、系统诊断等
    • ✅ 修倍所有 Bug语法错误、富入路埄、猺倱方法
    • ✅ 统䞀富入路埄䞺绝对富入
    • ✅ 删陀所有老版代码项目结构干净敎掁

📄 讞可

MIT License - 匀源免莹

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured