feat: 优化SKILL.md

feat: 更新 MCP_HIDDEN_TOOLS 列表,对mcp客户端隐藏文件相关工具
This commit is contained in:
PKC278
2026-03-23 05:13:45 +08:00
parent b79609bb8b
commit 8351312b2b
2 changed files with 135 additions and 83 deletions

View File

@@ -19,7 +19,13 @@ router = APIRouter()
# MCP 协议版本
MCP_PROTOCOL_VERSIONS = ["2025-11-25", "2025-06-18", "2024-11-05"]
MCP_PROTOCOL_VERSION = MCP_PROTOCOL_VERSIONS[0] # 默认使用最新版本
MCP_HIDDEN_TOOLS = {"execute_command", "search_web"}
MCP_HIDDEN_TOOLS = {
"execute_command",
"search_web",
"edit_file",
"write_file",
"read_file",
}
def list_exposed_tools():