360 Secure SkillHub
360 安全技能中心

mcp-config

围绕 .mcp.json 提供 MCP 服务器配置指引:添加服务器并选择作用域、切换已有服务器的作用域、各 Agent 的 JSON 格式差异参考、常用服务器目录,以及连接失败与重连错误的排查步骤。

drumrobot
drumrobot
热度 62.68
最近更新 2026-09-18 23:56:17
分类:开发依赖:读写文件应用场景:API 集成 / 工作流 / 调试排错

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mcp-config
Metadata
name
mcp-config
metadata
{"author":"es6kr","version":"0.1.2"}
description
MCP server configuration and diagnostics. add - add server (scope selection + registration) [add.md], move - change server scope (project→local, local→user) [move.md], format - JSON format reference (differences per agent) [format.md], catalog - list of commonly used servers [catalog.md], diagnostics - connection failure diagnosis and troubleshooting [diagnostics.md]. Use when: "add MCP", "mcp-config", "MCP server config", "add context7", "MCP format", "MCP server list", "move MCP", "MCP scope", "scope change", "MCP connection failed", "MCP error", "Failed to reconnect", "code-mode not working", "MCP server issue".

MCP Server Configuration

Correctly add and manage MCP servers in the .mcp.json file.

Topics

Topic Description Guide
add Add server (scope selection + registration + validation) add.md
catalog Catalog of commonly used MCP servers catalog.md
diagnostics Connection failure diagnosis and troubleshooting diagnostics.md
format JSON format reference (differences per agent) format.md
move Change server scope (project→local, local→user) move.md

Quick Reference

"add MCP"              → add topic (scope selection → registration)
"add context7"         → add topic + refer to catalog for config
"move MCP"             → move topic (scope change: remove + re-add)
"MCP format"           → format topic (JSON differences per agent)
"MCP server list"      → catalog topic
"MCP connection failed" → diagnostics topic (connection troubleshooting)
"Failed to reconnect"  → diagnostics topic

Core Rules

  • New MCP server = register as a separate key (do not put inside an existing server's env)
  • Scope selection AskUserQuestion required (global vs project, agent selection)
  • Antigravity requires transport: "stdio"