Skip to content

Conversation

@supreme0597
Copy link
Contributor

@supreme0597 supreme0597 commented Jan 13, 2026

变更描述

支持动态配置mcp功能

变更类型

  • 新功能

测试

  • 已在 Docker 环境测试
  • 相关功能正常工作

相关日志或者截图

image image image image

说明

样式细节还有些不够完美,json导入未支持mcp的json格式导入

"mcpServers": {
    "chrome-devtools": {
      "command": "npx chrome-devtools-mcp@latest",
      "type": "stdio"
    },
    "fetch": {
      "args": [
        "mcp-server-fetch"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }

当前采用的是:

{
  "name": "my-server",
  "transport": "streamable_http",
  "url": "https://example.com/mcp",
  "description": "服务器描述",
  "headers": {"Authorization": "Bearer xxx"},
  "tags": ["工具", "AI"]
}

💡 提示: 提交前可以运行 make lintmake format 检查代码规范

@supreme0597
Copy link
Contributor Author

这是什么东西报错了,第一次遇到

@xerrors
Copy link
Owner

xerrors commented Jan 14, 2026

@supreme0597 这个忽略

@xerrors xerrors self-assigned this Jan 14, 2026
- 新增 mcp_service 文件,移除原本的 src/agents/common/mcp.py,所有功能合并到mcp_service,MCP服务来处理服务器配置的增删改查操作、数据库与缓存之间的同步以及MCP客户端和工具的管理。
- 将重构的 MCP 和现有智能体做适配,引入全局缓存和状态管理机制用于MCP服务器和工具。
- 数据库表更新,在MCPServer模型中为StdIO传输类型添加了command和args字段。
- 其他代码优化、增强样式以提升用户体验和可读性。
@xerrors xerrors merged commit ebbb831 into xerrors:main Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants