
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@wangkanai/devops-mcp
Advanced tools
Dynamic Azure DevOps MCP Server for directory-based environment switching
A dynamic Azure DevOps MCP (Model Context Protocol) server that automatically switches authentication context based on the current working directory. This enables seamless integration with multiple Azure DevOps organizations and projects from a single MCP server.
.azure-devops.json configurationEach repository should contain a .azure-devops.json configuration file:
{
"organizationUrl": "https://dev.azure.com/your-org",
"project": "YourProject",
"pat": "your-pat-token-here",
"description": "Azure DevOps configuration for this repository",
"settings": {
"timeout": 30000,
"retries": 3,
"apiVersion": "7.1"
},
"tools": {
"workItems": true,
"repositories": true,
"builds": true,
"pullRequests": true,
"pipelines": true
},
"meta": {
"configVersion": "1.0",
"lastUpdated": "2025-07-21",
"createdBy": "devops-mcp"
}
}
Important: Add .azure-devops.json to your .gitignore file:
# Azure DevOps MCP local configuration (contains PAT tokens)
.azure-devops.json
/Users/wangkanai/Sources/riversync.azure-devops.json with RiverSync organization settings/Users/wangkanai/Sources/mula.azure-devops.json with Mula organization settings# Install and add to Claude Code MCP
claude mcp add devops -- npx -y @wangkanai/devops-mcp
Note: The
-yflag automatically accepts the package installation prompt, ensuring smooth non-interactive execution for MCP servers.
For Claude Desktop users, add this configuration to your MCP settings:
{
"mcpServers": {
"devops-mcp": {
"command": "npx",
"args": ["-y", "@wangkanai/devops-mcp"]
}
}
}
Claude Desktop MCP Settings Location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json📋 For comprehensive command documentation with detailed examples, see MCP-COMMANDS.md
{
"name": "get-current-context",
"arguments": {
"directory": "/Users/wangkanai/Sources/riversync"
}
}
{
"name": "get-work-items",
"arguments": {
"wiql": "SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.State] = 'Active'"
}
}
{
"name": "create-work-item",
"arguments": {
"type": "Task",
"title": "Implement new feature",
"description": "Add authentication system",
"assignedTo": "user@example.com"
}
}
{
"name": "get-repositories",
"arguments": {
"includeLinks": true
}
}
The server uses intelligent directory detection:
Each repository should contain a .azure-devops.json configuration file:
{
"organizationUrl": "https://dev.azure.com/your-org",
"project": "YourProject",
"pat": "your-pat-token-here",
"description": "Azure DevOps configuration for this repository",
"settings": {
"timeout": 30000,
"retries": 3,
"apiVersion": "7.1"
},
"tools": {
"workItems": true,
"repositories": true,
"builds": true,
"pullRequests": true,
"pipelines": true
},
"meta": {
"configVersion": "1.0",
"lastUpdated": "2025-07-21",
"createdBy": "devops-mcp"
}
}
Important: Add .azure-devops.json to your .gitignore file:
# Azure DevOps MCP local configuration (contains PAT tokens)
.azure-devops.json
/Users/wangkanai/Sources/riversync.azure-devops.json with RiverSync organization settings/Users/wangkanai/Sources/mula.azure-devops.json with Mula organization settingsThe server uses Personal Access Tokens (PAT) for Azure DevOps authentication. PAT tokens are configured per project in local .azure-devops.json configuration files within each repository.
PAT tokens should have the following scopes:
The server includes comprehensive error handling:
The enhanced validation system includes MCP server startup, connection verification, and readiness checks:
# Prepare MCP servers for validation
./warmup-mcp.sh
# Use custom configuration file
./warmup-mcp.sh custom-config.json
# Full validation with MCP server initialization
./validate-enhanced.sh
# Skip interactive Claude tests (faster)
./validate-enhanced.sh --skip-interactive
# Extended warmup for slow systems
./validate-enhanced.sh --warmup 20
# Test only specific repositories
./validate-enhanced.sh --repos "RiverSync,Mula"
# Use custom configuration file
./validate-enhanced.sh --config custom-config.json
# Show all options
./validate-enhanced.sh --help
# Build and test the server manually
npm run build
node test-server.js
The generic validation system uses validation-config.json:
{
"proxyPath": "/Users/wangkanai/Sources/devops-mcp",
"repositories": [
{
"name": "RiverSync",
"path": "/Users/wangkanai/Sources/riversync",
"expectedOrganization": "riversync",
"organizationUrl": "https://dev.azure.com/riversync",
"project": "RiverSync",
"enabled": true
}
],
"testSettings": {
"timeoutSeconds": 30,
"skipInteractive": false,
"mcpServerName": "devops-mcp",
"configFileName": ".azure-devops.json"
},
"expectedTools": ["workItems", "repositories", "builds", "pullRequests", "pipelines"]
}
The enhanced validation system includes:
.azure-devops.json file validation with expected valuesFull Validation Results:
The server previously supported a global config/environments.json file for environment mapping. This approach has been deprecated in favor of local .azure-devops.json configuration files for better security and project isolation.
If you need to migrate from the old environment-based configuration, convert your settings to local configuration files in each repository.
This MCP server is designed to work seamlessly with Claude Code for Azure DevOps operations:
Problem: Incorrect installation commands that fail to start the server
Root Cause: Outdated documentation showing incorrect command syntax
Solution: Use the correct installation command:
# ✅ Correct (RECOMMENDED)
claude mcp add devops-mcp -- -y @wangkanai/devops-mcp
# ❌ Incorrect (will fail)
Alternative working commands:
# Global installation method
npm install -g @wangkanai/devops-mcp
claude mcp add devops-mcp -- devops-mcp
.azure-devops.json exists in your project directory.azure-devops.json fileTest your installation with these commands:
# Test server startup (build and run directly)
npm run build && node dist/index.js
# Verify MCP integration
mcp__devops-mcp__get-current-context
# Test work item creation
mcp__devops-mcp__create-work-item --type "Task" --title "Test Item"
Enable debug logging by setting environment variable:
export DEBUG=devops-mcp
npm start
@wangkanai/devops-mcpdevops-mcp (auto-generated by NPM)npm view @wangkanai/devops-mcp versionnpm list -g @wangkanai/devops-mcpMIT License - see LICENSE file for details.
FAQs
Dynamic Azure DevOps MCP Server for directory-based environment switching
The npm package @wangkanai/devops-mcp receives a total of 13 weekly downloads. As such, @wangkanai/devops-mcp popularity was classified as not popular.
We found that @wangkanai/devops-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.