feat: webUI MCP 可视化配置面板 + README 更新

This commit is contained in:
luckyyzh
2026-08-02 22:27:50 +08:00
parent a70798e874
commit 5378d48095
6 changed files with 843 additions and 0 deletions
+22
View File
@@ -8,6 +8,7 @@ export const enLocale: LocalePlugin = {
"common.ok": "OK",
"common.language": "Language",
"common.models": "Models",
"common.mcp": "MCP",
"common.skills": "Skills",
"common.plugins": "Plugins",
"sidebar.hide": "Hide sidebar",
@@ -236,6 +237,27 @@ export const enLocale: LocalePlugin = {
"chat.commandCopy": "Copy the last assistant message",
"chat.compacted": "Compacted",
"chat.tokensSaved": "{saved} saved",
"mcp.addServer": "Add server",
"mcp.addEnv": "Add env",
"mcp.serverName": "Server name",
"mcp.enabled": "Enabled",
"mcp.transport": "Transport",
"mcp.command": "Command",
"mcp.args": "Arguments (one per line)",
"mcp.url": "URL",
"mcp.headers": "Headers (JSON)",
"mcp.auth": "Auth",
"mcp.bearerToken": "Bearer token",
"mcp.cwd": "Working directory",
"mcp.lifecycle": "Lifecycle",
"mcp.idleTimeout": "Idle timeout (minutes)",
"mcp.requestTimeout": "Request timeout (ms)",
"mcp.advanced": "Advanced (raw JSON)",
"mcp.applyJson": "Apply JSON",
"mcp.invalidJson": "Invalid JSON",
"mcp.noServers": "No MCP servers configured",
"mcp.selectServer": "Select a server to edit",
"mcp.restartHint": "Saved changes apply after restarting pi (or /reload).",
"i18n.close": "Close",
"i18n.copy": "Copy",
"i18n.copied": "Copied",
+22
View File
@@ -8,6 +8,7 @@ export const zhCNLocale: LocalePlugin = {
"common.ok": "确定",
"common.language": "语言",
"common.models": "模型",
"common.mcp": "MCP",
"common.skills": "技能",
"common.plugins": "插件",
"sidebar.hide": "隐藏侧边栏",
@@ -236,6 +237,27 @@ export const zhCNLocale: LocalePlugin = {
"chat.commandCopy": "复制最后一条助手消息",
"chat.compacted": "已压缩",
"chat.tokensSaved": "节省 {saved}",
"mcp.addServer": "添加服务器",
"mcp.addEnv": "添加环境变量",
"mcp.serverName": "服务器名称",
"mcp.enabled": "启用",
"mcp.transport": "传输方式",
"mcp.command": "命令",
"mcp.args": "参数(每行一个)",
"mcp.url": "URL",
"mcp.headers": "请求头(JSON)",
"mcp.auth": "认证",
"mcp.bearerToken": "Bearer token",
"mcp.cwd": "工作目录",
"mcp.lifecycle": "生命周期",
"mcp.idleTimeout": "空闲超时(分钟)",
"mcp.requestTimeout": "请求超时(毫秒)",
"mcp.advanced": "高级(原始 JSON)",
"mcp.applyJson": "应用 JSON",
"mcp.invalidJson": "JSON 无效",
"mcp.noServers": "未配置 MCP 服务器",
"mcp.selectServer": "选择一个服务器进行编辑",
"mcp.restartHint": "保存的更改在重启 pi(或 /reload)后生效。",
"i18n.close": "关闭",
"i18n.copy": "复制",
"i18n.copied": "已复制",