一键导入
using-mcp
Wires MCP servers into a Copilot client and verifies them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Wires MCP servers into a Copilot client and verifies them.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Flags risky shell commands and unsafe tree ops.
Detects high-confidence security risks in code.
Surfaces the dojo's non-negotiable prime directives.
Activates the dojo framework at the start of a session.
Plans multi-step work before writing code.
Captures lessons and promotes recurring patterns.
| name | using-mcp |
| description | Wires MCP servers into a Copilot client and verifies them. |
| tier | optional |
| category | integration |
| created_by | human |
| platforms | ["windows","macos","linux"] |
| tags | ["mcp","integration","tools"] |
| author | Andreas Wasita (@andreaswasita) |
Discovers, configures, and verifies Model Context Protocol servers from Copilot, Claude Code, Cursor, and other MCP-compliant clients. Treats mcp/registry.yaml as the source of truth and least-privilege scopes as non-negotiable. Does NOT itself author servers (see building-mcp-servers) or bypass the broker (see calling-mcp-tools-via-subprocess).
.vscode/mcp.json, .mcp.json, .cursor/mcp.json.mcp/registry.yaml accessible in the dojo (this skill is parasitic on the registry).npx / node available for stdio servers, or hosted endpoint for Streamable HTTP.az login, gh auth, OAuth flow, etc.) — never paste raw secrets into configs.view, edit, and powershell Copilot tools.1. Open `mcp/registry.yaml`. Find the server.
2. Pick the transport (stdio for local, Streamable HTTP for hosted).
3. Drop the config snippet from `mcp/configs/` into the client's config file.
4. Set scopes to least privilege.
5. Verify the server is green in the client; call one tool end-to-end.
| Transport | When | Auth model |
|---|---|---|
| stdio | Local dev, single user | Inherits CLI session env (az, gh) |
| Streamable HTTP | Hosted, teams, sandboxed | OAuth 2.1 + PKCE |
| SSE (legacy) | Only if server still requires it | Migrate to Streamable HTTP |
| Client | Config file |
|---|---|
| VS Code / GHCP agent mode | .vscode/mcp.json (workspace) or user-level via MCP: Open User Configuration |
| Copilot CLI | ~/.copilot/mcp.json or per-project .copilot/mcp.json |
| Claude Code | .mcp.json (repo) or ~/.claude.json (user) |
| Cursor | .cursor/mcp.json or ~/.cursor/mcp.json |
| Scope rule | Concrete |
|---|---|
| GitHub MCP | Fine-grained PAT, read-only where possible, scoped to specific repos |
| Filesystem MCP | Explicit allow-list of dirs — never / or ~ |
| Postgres / MSSQL MCP | Read-only role for assistant work |
| Azure MCP | Inherit az login identity, no SP secrets in config |
Use view on mcp/registry.yaml. If the server is listed, use its sanctioned config. If it is not listed, hand off to building-mcp-servers first and add a registry entry before consuming it.
Use the transport table above. Default to stdio for dev; Streamable HTTP for anything shared.
Use edit to add the snippet to the client's config file. Reference env vars (${env:VAR}) — never inline secrets. Pin server version (@x.y.z) for reproducibility.
// .vscode/mcp.json
{
"servers": {
"github": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github@1.4.0"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GH_PAT}" }
}
}
}
Apply the scope table. Default to read-only unless the workflow demonstrably requires writes. Document the scope in the registry entry, not just the config.
Run via the powershell tool:
VS Code → "MCP: Show Installed Servers" command, confirm green status
Claude Code → claude mcp list
Copilot CLI → /mcp list
Generic → node mcp/scripts/mcp-subprocess.js list <server-binary>
Then ask the agent to perform a tiny task that exercises one tool. Failure modes to check:
type (stdio vs http).If tools/call hangs or "tools_changed" loops, do not reconfigure — bypass. Switch to calling-mcp-tools-via-subprocess.
repo-scope classic GitHub token. Fine-grained, scoped./ or ~ for the filesystem MCP server.${env:VAR}.mcp/registry.yaml (with scopes documented).mcp/configs/ verbatim (except env / scopes).latest).grep for token patterns).