Azure DevOps MCP Server
Integrates Azure DevOps with GitHub Copilot Chat, enabling natural language queries of sprint work items, ticket summaries, and status tracking directly from VS Code without switching contexts.
README
Azure DevOps MCP Server
A Model Context Protocol (MCP) server that integrates Azure DevOps with GitHub Copilot Chat, allowing you to query work items naturally through conversation
π What is MCP?
Model Context Protocol (MCP) is an open standard that connects AI assistants like GitHub Copilot to external data sources. This tool implements an MCP server that:
- π Connects GitHub Copilot to your Azure DevOps project
- π¬ Enables natural language queries - just ask Copilot about your tickets
- β‘ Provides instant responses from cached data
- π Keeps your data local - no third-party services involved
Instead of switching between VS Code and Azure DevOps web portal, you can ask Copilot directly:
- "Show my sprint tickets"
- "Summarize ticket 13080"
- "What tickets are in ACC?"
π― What This Does
This tool helps you:
- Instantly view all User Stories where you have verification tasks assigned
- Query cached data without API rate limits or permission prompts
- Summarize tickets with full details including comments and descriptions
- Track your sprint work efficiently
- Stay in your IDE - no context switching needed
β¨ Key Features
- π MCP Protocol Implementation - Native integration with GitHub Copilot via Model Context Protocol
- π Cache-based queries - Instant responses from local cache
- π Smart filtering - Automatically finds User Stories with your query
- π¬ Full ticket details - Descriptions, comments, state, assignees, tags
- π Sprint tracking - Focused on current sprint items only
- π€ Natural language interface - Ask Copilot in plain English, no special syntax needed
π οΈ Setup
1. Prerequisites
- Node.js installed
- Azure DevOps personal access token
2. Configuration
Create a .env file with your credentials:
AZURE_DEVOPS_ORG_URL=https://your-org.visualstudio.com
AZURE_DEVOPS_TOKEN=your-personal-access-token
AZURE_DEVOPS_PROJECT=your-project-name
AZURE_DEVOPS_USER_EMAIL=your.email@company.com
3. Install Dependencies
npm install
npm run build
π How to Use
Step 1: Refresh Cache (Once per day or when needed)
npm run refresh
This fetches all User Stories from the current sprint where you have a "Verify" task assigned. Takes ~10-30 seconds depending on the number of stories.
Output example:
Found 12 user stories with your verify tasks
β Cache updated successfully!
Work items: 12
Last updated: 2025-11-17T07:33:36.435Z
Step 2: Query Your Tickets (Instant, no prompts!)
After caching, you can query instantly using GitHub Copilot Chat in VS Code:
In Copilot Chat, ask:
show all my sprint user storiessummarize ticket 13080show all tickets in status "In ACC"show tickets with tag "HIGHPRIO"
Or use the CLI:
# List all your verify stories
node cli.js my-verify
# Get details of a specific ticket
node cli.js item 13080
# Query cached data
npm run query
Query Cache Commands
npm run query
Available commands:
list- List all cached user storiesitem <id>- Show details for a specific ticketby-state <state>- Filter by state (Active, "In ACC", New, etc.)info- Show cache information
π¨ MCP Server Integration with GitHub Copilot
What Makes This Special?
This tool implements the Model Context Protocol (MCP), which means:
- π Direct Integration - Copilot can access your Azure DevOps data as if it's a native feature
- π¬ Natural Conversation - No special commands or syntax needed
- β‘ Real-time Context - Copilot knows about your tickets while you code
- π Secure & Local - Your data stays on your machine, accessed via your personal token
How It Works
βββββββββββββββββββ
β GitHub Copilot β "Show my sprint tickets"
β in VS Code β
ββββββββββ¬βββββββββ
β MCP Protocol
βΌ
βββββββββββββββββββ
β MCP Server β Queries local cache
β (This Tool) β
ββββββββββ¬βββββββββ
β
βΌ
βββββββββββββββββββ
β Cached Data β Your sprint tickets
β work-items.jsonβ (refreshed from Azure DevOps)
βββββββββββββββββββ
### MCP Configuration
The MCP server is configured in `.vscode/settings.json`:
```json
{
"github.copilot.chat.codeGeneration.instructions": [
{
"file": "azure-devops-mcp-server"
}
],
"mcp.servers": {
"azure-devops": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "${workspaceFolder}/azure-devops-mcp-server"
}
}
}
This tells VS Code to run the MCP server when Copilot needs Azure DevOps data.
π Project Structure
azure-devops-mcp-server/
βββ src/
β βββ azure-devops-client.ts # Azure DevOps API client
β βββ index.ts # MCP server implementation
βββ cache/
β βββ work-items.json # Cached sprint data
βββ cli.js # Command-line interface
βββ refresh-cache.js # Cache refresh script
βββ query-cache.js # Cache query script
βββ .env # Your credentials (gitignored)
βββ package.json # Project configuration
π Typical Workflow
- Morning: Run
npm run refreshto get today's sprint data - During work: Ask Copilot about tickets - instant responses from cache
- Need updates? Run
npm run refreshagain
π― Why This Matters
Before this tool:
- Every query required clicking "Allow" button
- Interrupts your flow
- Slow responses
With this tool:
- Cache once, query unlimited times
- No permission prompts
- Instant responses in Copilot Chat
π Quick Start for Team Members
- Clone/copy this folder to your machine
- Create
.envfile with your Azure DevOps credentials - Install dependencies:
npm install && npm run build - Refresh cache:
npm run refresh - Configure VS Code to enable MCP server (see MCP Configuration above)
- Start chatting with Copilot about your tickets!
π‘ Pro Tip: Once the MCP server is running, Copilot becomes your Azure DevOps assistant. Just ask questions naturally!
π‘ Tips
- Refresh cache at the start of your workday
- Cache includes all comments and descriptions
- Works offline once cached
- Cache file is human-readable JSON (check
cache/work-items.json)
π§ Troubleshooting
"Error: azureClient.getUserStoriesWithMyVerifyTasks is not a function"
- Run
npm run buildto recompile TypeScript
"Found 0 user stories"
- Check your email in
.envmatches Azure DevOps - Verify you have "Verify" tasks assigned in current sprint
Cache is outdated
- Run
npm run refreshto update
π License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.