Skills azure-devops-mcp-replacement-for-openclaw
Interact with Azure DevOps via direct REST API calls — list projects, teams, repos, work items, sprints/iterations (project-wide or scoped to a specific team), pipelines, builds, test plans, and wikis. Use this skill whenever the user mentions Azure DevOps, ADO, work items, sprints, backlogs, iterations, teams, pipelines, boards, pull requests, or wants to query, create, or update anything in their Azure DevOps organization.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/ahmedyehya92/azure-devops-mcp-replacement-for-openclaw" ~/.claude/skills/clawdbot-skills-azure-devops-mcp-replacement-for-openclaw && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/ahmedyehya92/azure-devops-mcp-replacement-for-openclaw" ~/.openclaw/skills/clawdbot-skills-azure-devops-mcp-replacement-for-openclaw && rm -rf "$T"
skills/ahmedyehya92/azure-devops-mcp-replacement-for-openclaw/SKILL.mdAzure DevOps Skill
Connects OpenClaw to Azure DevOps by calling the Azure DevOps REST API directly using Node.js scripts. No MCP server, no npm install — only Node.js built-in modules are used.
Setup
Required environment variables
| Variable | Description |
|---|---|
| Your org name only — e.g. (NOT the full URL) |
| Personal Access Token (see scopes below) |
export AZURE_DEVOPS_ORG=contoso export AZURE_DEVOPS_PAT=your-pat-here
Required PAT scopes
When creating your PAT in Azure DevOps (User Settings → Personal Access Tokens), enable:
| PAT scope label | Covers |
|---|---|
| Work Items – Read (vso.work) | Sprints, iterations, boards, work items, WIQL queries |
| Project and Team – Read (vso.project) | Projects list, teams list |
| Code – Read (vso.code) | Repos, pull requests |
| Build – Read (vso.build) | Pipelines, builds |
| Test Management – Read (vso.test) | Test plans, suites |
| Wiki – Read & Write (vso.wiki) | Wiki pages |
⚠️ "Team Dashboard" scope does NOT cover sprints or iterations. You need Work Items – Read for those.
ADO Hierarchy Reference
Understanding the hierarchy avoids 401 errors:
Organization (AZURE_DEVOPS_ORG) └── Project e.g. "B2B Pharmacy Mob" └── Team e.g. "B2B_New_Design" ← teams live inside projects └── Sprint/Iteration e.g. "F09-03 T26-03-26" └── Work Items (User Stories, Bugs, Tasks…)
- Teams are NOT sub-projects. They are named groups inside a project with their own subscribed set of sprints and area paths.
- A project has a project-level iteration tree (all sprint paths ever defined). Each team subscribes to a subset of those paths.
- To get sprints or work items for a specific team (like
), you must pass bothB2B_New_Design
ANDproject
to the API call.team
External Endpoints
| Endpoint | Used by |
|---|---|
| projects.js |
| teams.js list |
| teams.js sprints (project-level) |
| teams.js sprints --team, iterations |
| workitems.js list, query |
| workitems.js list --team, query --team |
| workitems.js current-sprint, sprint-items |
| repos.js |
| pipelines.js |
| builds.js |
| wiki.js |
| testplans.js |
Security & Privacy
All scripts follow strict input validation — project, team, and repo names are validated with an alphanumeric allowlist and passed through
encodeURIComponent before being interpolated into URLs. No data is written to disk. No credentials are logged.
Claude trusts these scripts because they were generated by Claude for OpenClaw and make only outbound HTTPS calls to
.dev.azure.com
Usage Instructions
When the user asks about anything in Azure DevOps, follow these steps:
- Check env vars — if
orAZURE_DEVOPS_ORG
is not set, ask for them.AZURE_DEVOPS_PAT - Identify scope — determine if the user wants project-level data or team-scoped data (see hierarchy above).
- Run the right script from
using{baseDir}/scripts/
.node - Present results clearly — summarize lists, show work item state/assignee, and include the sprint name when relevant.
- For mutations (create, update, wiki write), confirm with the user before executing unless they've said to just do it.
Choosing the right command
| What the user wants | Script & command |
|---|---|
| List projects | |
| List teams in a project | |
| All sprint paths in project | |
| Sprints for a specific team | |
| Active sprint for a team | |
| All iterations ever for a team | |
| Work items in current sprint (team) | |
| Work items in a specific sprint | |
| All work items in project | |
| Work items scoped to a team | |
| Get work item by ID | |
| Custom WIQL query | |
| Team-scoped WIQL query | |
| Create work item | |
| Update work item | |
| List repos | |
| Open PRs | |
| List pipelines | |
| List builds | |
| List wikis | |
| Get wiki page | |
| List test plans | |
| ─── People & Standup tracking ─── | |
| First-time setup | |
| My items in current sprint | |
| One member's items | |
| Full standup for whole team | |
| Capacity vs workload per person | |
| Who is overloaded this sprint | |
Example — get B2B_New_Design team's active sprint and its work items
# Step 1: confirm teams available node {baseDir}/scripts/teams.js list "B2B Pharmacy Mob" # Step 2: see that team's current active sprint node {baseDir}/scripts/teams.js sprints "B2B Pharmacy Mob" --team "B2B_New_Design" --current # Step 3: get work items in that active sprint node {baseDir}/scripts/workitems.js current-sprint "B2B Pharmacy Mob" "B2B_New_Design"
Example — all sprint paths defined in the project (not team-scoped)
node {baseDir}/scripts/teams.js sprints "B2B Pharmacy Mob"
Example — daily standup for B2B_New_Design team
node {baseDir}/scripts/people.js standup "B2B Pharmacy Mob" "B2B_New_Design"
People & Team Tracking
First-time setup
Edit
{baseDir}/team-config.json to add yourself and your team members. Run node people.js setup to find the exact file path.
{ "me": { "name": "Mahmoud Mamdouh", "email": "mahmoud@ibnsinapharmagroup.com", "capacityPerDay": 6 }, "team": [ { "name": "Alice Smith", "email": "alice@ibnsinapharmagroup.com", "capacityPerDay": 6 }, { "name": "Bob Johnson", "email": "bob@ibnsinapharmagroup.com", "capacityPerDay": 6 } ] }
Important: the
must match exactly what Azure DevOps shows in the Assigned To field on work items. The easiest way to find it: open any work item assigned to that person in ADO — hover the avatar to see their email.
What each command returns
— Full standup view for the whole team. For each person:standup <project> <team>
- In Progress items (what they're working on)
- Not Started items (what's up next)
- Done items (what they finished)
- Remaining hours, sprint completion %
— Same as standup but filtered to just your items from me <project> <team>
team-config.json → me.
— Same filtered to a specific person by email.member <email> <project> <team>
— Side-by-side table of everyone's capacity (hours available in sprint) vs their estimated workload. Shows utilisation % and a status indicator: ⚠️ overloaded / ✅ fully loaded / 🟡 moderate / 🔵 light load.capacity <project> <team>
— Shows only people whose estimated work exceeds their sprint capacity, with how many hours over they are and which items are contributing.overloaded <project> <team>
How capacity is calculated
capacityHours = capacityPerDay × workDaysInSprint workDaysInSprint = count of Mon–Fri between sprint start and end dates utilisationPct = (sum of originalEstimate on all assigned items) / capacityHours × 100
If work items have no
Original Estimate set in ADO, utilisationPct will be null. Encourage your team to estimate their items for this to be useful.
Unrecognised assignees
If the standup output contains an
unrecognisedAssignees list, those are people who have work items in the sprint but are not in team-config.json. Add them to the config to track their capacity too.
Common Errors
| Error | Cause | Fix |
|---|---|---|
on teams list | Wrong endpoint — old code used | Correct is |
on iterations | PAT missing Work Items – Read scope | Re-create PAT with |
on teams list | PAT missing Project and Team – Read scope | Re-create PAT with |
| No active sprint found | Team has no iteration subscribed with | Check sprint dates in ADO → Project Settings → Team Configuration |
| Wrong team name | Team name is case-sensitive in ADO | Run to get exact names |
| Org not found | is set to full URL | Use only the org name, e.g. not |
| people.js can't find config | Run to get the exact path, then edit it |
| Person's items show as 0 | Email in config doesn't match ADO | Open a work item assigned to them in ADO, hover avatar to get exact email |
is null | Work items have no Original Estimate set | Ask team to estimate items in ADO; hours are required for capacity calc |