Skip to content

Commit 330ba9f

Browse files
committed
feat: hide MCP server URL/command to prevent token exposure
Remove URL and command display from MCP server tab UI to prevent leaking sensitive tokens in query parameters (e.g. ?tavilyApiKey=...)
1 parent 8439f0f commit 330ba9f

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

docs/spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ _Skill 系统_
392392

393393
**主要特性:**
394394

395-
- **服务器列表**:展示所有通过 `.mcp.json` 配置的 MCP 服务器,包括名称、连接状态(○ 未连接 / ● 已连接 / ⟳ 连接中 / ✗ 错误)、工具数量和连接命令/URL
395+
- **服务器列表**:展示所有通过 `.mcp.json` 配置的 MCP 服务器,包括名称、连接状态(○ 未连接 / ● 已连接 / ⟳ 连接中 / ✗ 错误)和工具数量
396396
- **连接/断开控制**:支持一键连接或断开 MCP 服务器,连接状态实时刷新。
397397
- **错误信息展示**:连接失败的服务器会显示具体错误原因。
398398
- **空状态引导**:未配置任何服务器时,提示用户创建 `.mcp.json` 文件。

webview/src/components/ConfigurationDialog.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,12 +426,6 @@ const ConfigurationDialog: React.FC<ConfigurationDialogProps & { vscode: any }>
426426
<span className="mcp-tool-count">{server.toolCount} tools</span>
427427
)}
428428
</div>
429-
{server.config.command && (
430-
<div className="mcp-server-command">{server.config.command}{server.config.args ? ` ${server.config.args.join(' ')}` : ''}</div>
431-
)}
432-
{server.config.url && (
433-
<div className="mcp-server-command">{server.config.url}</div>
434-
)}
435429
{server.error && (
436430
<div className="mcp-server-error">{server.error}</div>
437431
)}

0 commit comments

Comments
 (0)