Thank you for reaching out. Please find the answer below.
1.Verify the Installation: Ensure that you have installed the MCP server correctly. You can do this by running the command in your terminal: npx @azure/mcp@latest server start If this command runs successfully, ensure that the server is listening for connections.
2.Check your mcp .json Configuration: Make sure your mcp.json file in the .vscode directory is properly formatted.
Note: In the error, which you shared "Command not found server" means the server subcommand was missingor misplaced, make sure .vscode/mcp.json server config looks like:
"mcp": {
"servers": {
"Azure MCP server": {
"command": "npx",
"args": ["-y","@azure/mcp@latest", "server", "start"]
}
}
}
3.Node.js Version: Ensure you're using Node.js v20 or higher. Older versions may not support the MCP server properly.
4.Please ensure: 1. You're using Node.js v20 or higher.
2.Your mcp.json file uses "npx" as the command, not "server".
3.You've authenticated with Azure using az login.
If the issue persists, try running the MCP server manually using: npx -y @azure-devops/mcp <your-org-name>
5.Permissions: Ensure that you have the correct permissions to access Azure resources. You might need to verify if your Azure account has necessary RBAC roles assigned.
6.WebSocket Configuration: If your network restricts WebSocket connections, ensure that they are enabled, as some functionalities may not work without them.
If issue still persist after following all the steps, we’ll be happy to assist further if needed." Kindly mark the answer as accepted if the issue resolved".