Copilot CLI `/mcp search` Fails with 400 Error in Azure DevOps Repos
nstrating · ghdev · 2026-08-05
The /mcp search command in GitHub Copilot CLI consistently throws a 400 Bad Request error when run inside a trusted folder whose Git remote points to Azure DevOps, failing to load the enterprise MCP registry policy.
Issue Details:
- This affects engineering orgs not natively hosted on GitHub (the reporter's org uses 100% Azure DevOps).
- The root cause implies the CLI improperly derives repo/org context from non-GitHub Git remotes, breaking the policy fetch request.
Workaround:
- Run copilot from a non-Git directory (like the home folder) to execute /mcp search and add servers.
- The config persists to /.copilot/mcp-config.json, making the MCP servers usable from any repository afterward.
More from coding & agent
- Grok Build in Action: Turning Terminal Agents into Autonomous PC Assistants — XFreeze · 2026-08-05
- Top 10 Directories to Submit Your MCP Server — ayushtweetshere · 2026-08-05
- Supervision: Reusable Computer Vision Tools, Nearing 50K Stars — roboflow · 2026-08-05
- Loopx: A Lightweight Loop Engineering State Kernel for Long-Running AI Agent Teams — huangruiteng · 2026-08-05
- Claude Code Creator Maps Out 5 Steps of AI Adoption — therealdanvega · 2026-08-05
- Running Restaurants with AI Agents: The 3 Universal Failure Modes — EdwardCHWang · 2026-08-05