feat(mcp): 完整落地 MCP 服务管理

- Dockerfile 后端 stage 加 nodejs/npm,支持 stdio MCP server
- 新增前端 MCP 服务管理 UI(MCPSettings.tsx),支持 stdio/sse/http 三种 transport
- PluginLayout 改双 tab(技能 / MCP 服务)
- i18n 补 MCP 相关 zh/en 文案
- send_file 工具的 trace_id 改可选,聊天场景退化为返回内容
- system_workflow 工具集纳入 send_file

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-06-06 04:43:08 +00:00
parent b15eeb9e74
commit c0fcbe2849
7 changed files with 480 additions and 12 deletions
+3
View File
@@ -13,10 +13,13 @@ FROM python:3.13-slim
WORKDIR /app
# Install system dependencies (for building PostgreSQL drivers and other native extensions)
# nodejs/npm are needed for stdio-mode MCP servers (e.g. npx -y @modelcontextprotocol/...)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libpq-dev \
git \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# Install uv package manager