-
Clearing VS Code Cache If you encounter issues with stale configurations, reload the VS Code window:
- Press
Ctrl+Shift+P(orCmd+Shift+Pon macOS). - Select
Developer: Reload Window.
If the issue persists, you can take a more aggressive approach by clearing the following folders:
%APPDATA%\Code\Cache%APPDATA%\Code\CachedData%APPDATA%\Code\User\workspaceStorage%APPDATA%\Code\logs
Clear Node Modules Cache
npm cache clean --force
- Press
-
Server Not Showing Up in Agent Mode Ensure that the
mcp.jsonfile is correctly configured and includes the appropriate server definitions. Restart your MCP server and reload the VS Code window. -
Tools Not Loading in Agent Mode If tools do not appear, click "Add Context" in Agent Mode and ensure all tools starting with
ado_are selected. -
Too Many Tools Selected (Over 128 Limit) VS Code supports a maximum of 128 tools. If you exceed this limit, ensure you do not have multiple MCP Servers running. Check both your project's
mcp.jsonand your VS Codesettings.jsonto confirm that the MCP Server is configured in only one location—not both.
-
npm Authentication Issues for Remote Access If you encounter authentication errors:
- Ensure you are logged in to Azure DevOps using the
azCLI:az login
- Verify your npm configuration:
It should point to:
npm config get registry
https://registry.npmjs.org/
- Ensure you are logged in to Azure DevOps using the
-
Dependency Installation Errors If
npm installfails, verify that you are using Node.js version 20 or higher. You can check your Node.js version with:node -v
If you encounter authentication errors like TF400813: The user 'xxx' is not authorized to access this resource, you may be experiencing multi-tenant authentication issues.
- Azure CLI (
az devops project list) works fine - MCP server fails with authorization errors
- You have access to multiple Azure tenants
The MCP server may be authenticating with a different tenant than your Azure DevOps organization, especially when you have access to multiple Azure tenants. The MCP server may also be using the Azure Devops Org tenant when the user belongs to a different tenant and is added as a guest user in the Azure DevOps organization.
-
Identify the correct tenant ID for your Azure DevOps organization:
az account list
Look for the
tenantIdfield in the output for the desired tenant (for guest accounts this will be the tenant of your organization and may be different than the Azure Devops Organization tenant). -
Configure the MCP server with the tenant ID by updating your
.vscode/mcp.json:{ "inputs": [ { "id": "ado_org", "type": "promptString", "description": "Azure DevOps organization name (e.g. 'contoso')" }, { "id": "ado_tenant", "type": "promptString", "description": "Azure tenant ID (required for multi-tenant scenarios)" } ], "servers": { "ado": { "type": "stdio", "command": "mcp-server-azuredevops", "args": ["${input:ado_org}", "--tenant", "${input:ado_tenant}"] } } } -
Restart VS Code completely to ensure the MCP server picks up the new configuration.
-
When prompted, enter:
- Your Azure DevOps organization name
- The tenant ID from step 1