chore(mcp): clear built-in MCP presets; keep logic intact
- Remove sample presets from while preserving seeding/display logic - Add inline notes for future preset/hidden strategy and per-client (claude/codex) split - Make preset seeding a no-op with empty list; no behavior change elsewhere - Verified > cc-switch@3.4.0 typecheck /Users/jasonyoung/Code/cc-switch > tsc --noEmit passes; UI reads/writes continue to work
This commit is contained in:
@@ -12,27 +12,16 @@ export type McpPreset = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 预设库(数据文件,当前未接入 UI,便于后续“一键启用”)
|
// 预设库(数据文件,当前未接入 UI,便于后续“一键启用”)
|
||||||
export const mcpPresets: McpPreset[] = [
|
// 注意:预设数据暂时清空,仅保留结构与引用位置。
|
||||||
{
|
// 原因:
|
||||||
id: "github-issues",
|
// - 近期决定将 MCP SSOT 拆分为 mcp.claude / mcp.codex,不同客户端的格式与支持能力不同;
|
||||||
name: "GitHub Issues",
|
// - 需要先完善“隐藏预设/不回种”机制与导入/同步策略,避免用户删除后被自动回填;
|
||||||
description: "查询与管理 GitHub Issues(示例)",
|
// - 在上述机制与 Codex 适配完成前,避免内置示例误导或造成意外写入。
|
||||||
tags: ["productivity", "dev"],
|
// 后续计划(占位备注):
|
||||||
server: { type: "http", url: "https://mcp.example.com/github-issues" },
|
// - 重新引入官方/社区 MCP 预设,区分 `source: "preset"`;
|
||||||
docs: "https://example.com/mcp/github-issues",
|
// - 支持每客户端(Claude/Codex)独立隐藏名单 `hiddenPresets`,仅影响自动回种;
|
||||||
requiresEnv: ["GITHUB_TOKEN"],
|
// - UI 提供“删除并隐藏”与“恢复预设”操作;
|
||||||
},
|
// - 导入/同步与启用状态解耦,仅启用项投影至对应客户端的用户配置文件。
|
||||||
{
|
export const mcpPresets: McpPreset[] = [];
|
||||||
id: "local-notes",
|
|
||||||
name: "本地笔记",
|
|
||||||
description: "访问本地笔记数据库(示例)",
|
|
||||||
tags: ["local"],
|
|
||||||
server: {
|
|
||||||
type: "stdio",
|
|
||||||
command: "/usr/local/bin/notes-mcp",
|
|
||||||
args: ["--db", "~/.notes/notes.db"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
export default mcpPresets;
|
export default mcpPresets;
|
||||||
|
|||||||
Reference in New Issue
Block a user