用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/gautam-achieveai/ClaudePlugins --skill setup-ado-mcp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | setup-ado-mcp |
| description | Internal helper. Load only when explicitly named by another skill or agent. |
| user-invocable | true |
| disable-model-invocation | false |
| allowed-tools | ["Read","Write","Edit","Bash"] |
Set up Azure DevOps MCP without making the user hand-edit config files. Prefer auto-detection and existing repo examples over questions.
Configure all local MCP entrypoints needed for this repo in one run:
.mcp.json for Claude Code.claude/settings.local.json only if the Azure DevOps MCP server is not already enabled~/.copilot/mcp-config.json for GitHub Copilot CLIUse the committed examples as the canonical shapes. Reference files are in the plugin's examples/ directory.
Resolve settings in this order:
AZURE_DEVOPS_ORG_URLAZURE_DEVOPS_PROJECTAZURE_DEVOPS_REPOSITORYAZURE_DEVOPS_IS_ON_PREMISESAZURE_DEVOPS_AUTH_TYPEgit remote get-url originscripts/launch-ado-mcp.sh:
https://{org}.visualstudio.com/{project}/_git/{repo}https://dev.azure.com/{org}/{project}/_git/{repo}git@ssh.dev.azure.com:v3/{org}/{project}/{repo}{org}@vs-ssh.visualstudio.com:v3/{org}/{project}/{repo}/_git/ (HTTPS) or the last path segment (SSH).AZURE_DEVOPS_IS_ON_PREMISES=falseAZURE_DEVOPS_AUTH_TYPE=entraOnly ask the user for input if both environment variables and git remote detection fail to produce the required org/project/repository values.
uname -s or check the $OS variable to determine if the host is Windows (MINGW*, MSYS*, CYGWIN*, or $OS = Windows_NT) or Unix/macOS. This determines the command/args shape for MCP server entries.Target file: .mcp.json
.mcp.json does not exist, create it with a top-level mcpServers object.mcpServers.azure-devops entry and preserve all other servers.azure-devops server entry. The command and args depend on the platform:Windows — Claude Code uses a bash shell, so MCP server processes must be launched via cmd to reach npx correctly:
{
"mcpServers": {
"azure-devops": {
"command": "cmd",
"args": [
"/c", "npx", "-y", "@achieveai/azuredevops-mcp"
],
"env": {
"AZURE_DEVOPS_ORG_URL": "resolved-org-url",
"AZURE_DEVOPS_PROJECT": "resolved-project",
"AZURE_DEVOPS_REPOSITORY": "resolved-repository",
"AZURE_DEVOPS_IS_ON_PREMISES": "false",
"AZURE_DEVOPS_AUTH_TYPE": "entra"
},
"defer_loading": true
}
}
}
macOS / Linux — use the launch script (set args[0] to its absolute path — see notes), which also provides runtime auto-detection as a fallback:
{
"mcpServers": {
"azure-devops": {
"command": "bash",
"args": [
"../../scripts/launch-ado-mcp.sh"
],
"env": {
"AZURE_DEVOPS_ORG_URL": "resolved-org-url",
"AZURE_DEVOPS_PROJECT": "resolved-project",
"AZURE_DEVOPS_REPOSITORY": "resolved-repository",
"AZURE_DEVOPS_IS_ON_PREMISES": "false",
"AZURE_DEVOPS_AUTH_TYPE": "entra"
},
"defer_loading": true
}
}
}
Notes:
AZURE_DEVOPS_REPOSITORY from the git remote URL. If detection fails, ask the user for the repository name rather than leaving it empty.../../scripts/launch-ado-mcp.sh so the config works regardless of where the plugin is installed.npx via cmd /c because Claude Code's bash environment cannot reliably spawn npx directly as an MCP server process.Target file: .claude/settings.local.json
enableAllProjectMcpServers is trueenabledMcpjsonServers exists and includes "azure-devops" exactly onceDo not remove unrelated permissions or settings.
Target file: ~/.copilot/mcp-config.json
~/.copilot directory exists.mcpServers object.mcpServers.azure-devops entry and preserve all other servers.azure-devops server entry with this shape:{
"mcpServers": {
"azure-devops": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@achieveai/azuredevops-mcp"
],
"env": {
"AZURE_DEVOPS_ORG_URL": "resolved-org-url",
"AZURE_DEVOPS_PROJECT": "resolved-project",
"AZURE_DEVOPS_REPOSITORY": "resolved-repository",
"AZURE_DEVOPS_IS_ON_PREMISES": "false",
"AZURE_DEVOPS_AUTH_TYPE": "entra"
},
"tools": [
"*"
]
}
}
}
Guidelines:
AZURE_DEVOPS_REPOSITORY — it should have been resolved in step 1.tools as ["*"] unless the user explicitly asked to narrow the tool list.Validate all JSON files you touched:
.mcp.json.claude/settings.local.json~/.copilot/mcp-config.jsonUse the available shell to parse the JSON rather than assuming it is valid.
Examples:
Get-Content '<path>' -Raw | ConvertFrom-Json | Out-Nullpython -c "import json; json.load(open('<path>'))"node -e "JSON.parse(require('fs').readFileSync('<path>', 'utf8'))"If parsing fails, fix the file before reporting success.
At the end, summarize:
.claude/settings.local.json/mcp or claude mcp list/mcp show azure-devops