{"id":50685348,"url":"https://github.com/kimtth/mcp-azure-devops-client-demo","last_synced_at":"2026-06-08T22:31:52.888Z","repository":{"id":324842225,"uuid":"1098752782","full_name":"kimtth/mcp-azure-devops-client-demo","owner":"kimtth","description":"Azure DevOps ♾️ via an Azure DevOps MCP Server","archived":false,"fork":false,"pushed_at":"2025-11-18T05:56:30.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-18T07:19:02.698Z","etag":null,"topics":["azure-devops","mcp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimtth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-18T05:13:43.000Z","updated_at":"2025-11-18T05:56:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kimtth/mcp-azure-devops-client-demo","commit_stats":null,"previous_names":["kimtth/mcp-azure-devops-client-demo"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/kimtth/mcp-azure-devops-client-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fmcp-azure-devops-client-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fmcp-azure-devops-client-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fmcp-azure-devops-client-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fmcp-azure-devops-client-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimtth","download_url":"https://codeload.github.com/kimtth/mcp-azure-devops-client-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fmcp-azure-devops-client-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34083848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-devops","mcp"],"created_at":"2026-06-08T22:31:50.513Z","updated_at":"2026-06-08T22:31:52.883Z","avatar_url":"https://github.com/kimtth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure DevOps ♾️ Azure DevOps MCP Demo 💬\n\nMinimal demo of interacting with Azure DevOps via an Azure DevOps MCP Server (projects, work items, repos, wiki).\n\n## Quick Start\n1. uv sync\n2. Set env vars (see the `.env.examples`): AZURE_DEVOPS_ORG (e.g., contoso), AZURE_DEVOPS_PAT (Azure DevOps Personal Access Token)\n\n\u003e [!NOTE]\n\u003e The sample shows how to authenticate with an Azure DevOps Personal Access Token (PAT). To use Azure CLI instead, simply omit the `ADO_MCP_AUTH_TOKEN` environment variable.\n\n## Token Optimization\n\nThis demo includes an **optimized version** (`main_optimized.py`) that reduces token usage by 80-95% through progressive tool disclosure. Instead of loading all 77 tools upfront, it intelligently filters tools based on user intent, significantly reducing costs and latency.\n\n**Key Benefits:**\n- 📉 92% average token reduction per request\n- 💰 ~$420/month cost savings (100 requests/day)\n- ⚡ Faster response times\n- 🎯 Smart intent-based tool filtering\n\nBest practices based on [Anthropic's MCP optimization guide](https://www.anthropic.com/engineering/code-execution-with-mcp).\n\n## Usage\n\nExamples:\n- \"List projects\"\n- \"Get work item 10001 in DemoProject\"\n- \"Create a task (preview) to update docs in DemoProject\"\n- \"List open pull requests in DemoProject\"\n\n\u003cdetails\u003e\n\u003csummary\u003eSample MCP Interaction Outputs\u003c/summary\u003e\n\n---\n\n## 1. List Projects\n\n**Prompt:**\n```\nGet list of all projects in my Azure DevOps organization\n```\n\n**Response:**\n\nHere are all projects in your Azure DevOps organization:\n\n- **DemoProject** (ID: proj-001) — state: wellFormed — visibility: Private — last update: 2025-01-15T10:30:00Z\n- **WebApp** (ID: proj-002) — state: wellFormed — visibility: Public — last update: 2025-01-10T14:20:00Z\n- **MobileApp** (ID: proj-003) — state: wellFormed — visibility: Private — last update: 2024-12-20T08:15:00Z\n\n---\n\n## 2. Get My Work Items\n\n**Prompt:**\n```\nGet my work items for project DemoProject\n```\n\n**Response:**\n\nI found 15 work items assigned to you in project DemoProject. Here they are (ID — URL):\n\n- 10001 — https://dev.azure.com/[ORG]/_apis/wit/workItems/10001\n- 10002 — https://dev.azure.com/[ORG]/_apis/wit/workItems/10002\n- 10003 — https://dev.azure.com/[ORG]/_apis/wit/workItems/10003\n- 10004 — https://dev.azure.com/[ORG]/_apis/wit/workItems/10004\n- 10005 — https://dev.azure.com/[ORG]/_apis/wit/workItems/10005\n\nWould you like any of these opened for full details (title, state, assignee, description), filtered (by state/type), exported (CSV), or do something else with them?\n\n---\n\n## 3. List Teams\n\n**Prompt:**\n```\nGet list of teams for project DemoProject\n```\n\n**Response:**\n\nI found 8 teams in project \"DemoProject\":\n\n1. **Core Team** — team-001\n2. **DevOps Team** — team-002\n3. **Frontend Team** — team-003\n4. **Backend Team** — team-004\n5. **QA Team** — team-005\n6. **Security Team** — team-006\n7. **Design Team** — team-007\n8. **Platform Team** — team-008\n\nWould you like any of these expanded with description, URL, or team membership?\n\n---\n\n## 4. Get Work Item Details\n\n**Prompt:**\n```\nGet work item 10001 and show me the fields: ID, Type, State, Title, Assigned To, and Priority\n```\n\n**Response:**\n\n**Work Item 10001**\n- **Type:** Task\n- **State:** Active\n- **Title:** Update API documentation\n- **Assigned To:** [REDACTED]\n- **Priority:** 2\n\n---\n\n## 5. Create Work Item\n\n**Prompt:**\n```\nCreate a new Task in project DemoProject with title 'Update documentation' and description 'Need to update API documentation with latest changes'\n```\n\n**Response:**\n\n✓ Successfully created Task 10015 in project DemoProject\n\n**Details:**\n- **ID:** 10015\n- **Type:** Task\n- **Title:** Update documentation\n- **Description:** Need to update API documentation with latest changes\n- **State:** New\n- **URL:** https://dev.azure.com/[ORG]/DemoProject/_workitems/edit/10015\n\n---\n\n## 6. Update Work Item\n\n**Prompt:**\n```\nUpdate work item 10001: set State to 'Active', Priority to 2, and add a comment 'Working on this now'\n```\n\n**Response:**\n\n✓ Successfully updated work item 10001\n\n**Changes applied:**\n- State: New → **Active**\n- Priority: 3 → **2**\n- Added comment: \"Working on this now\"\n\nCurrent revision: 5\n\n---\n\n## 7. List Pull Requests\n\n**Prompt:**\n```\nList all active pull requests for project DemoProject and repository webapp-frontend\n```\n\n**Response:**\n\nFound 2 active pull requests in repository **webapp-frontend**:\n\n1. **PR #301** - Add user authentication feature\n   - Status: Active\n   - Source: feature/auth → main\n   - Created by: [REDACTED]\n\n2. **PR #302** - Fix navigation bug\n   - Status: Active\n   - Source: bugfix/nav → develop\n   - Created by: [REDACTED]\n\n---\n\n## 8. List Wikis\n\n**Prompt:**\n```\nGet list of wikis in project DemoProject\n```\n\n**Response:**\n\nFound 2 wikis in project DemoProject:\n\n1) **Name:** DemoProject.wiki\n   - ID: wiki-001\n   - Type: Project wiki (type = 0)\n   - URL: https://dev.azure.com/[ORG]/[PROJECT]/_wiki/wikis/wiki-001\n\n2) **Name:** Team Documentation\n   - ID: wiki-002\n   - Type: Code wiki (type = 1)\n   - URL: https://dev.azure.com/[ORG]/[PROJECT]/_wiki/wikis/wiki-002\n\nWould you like the pages for either wiki or the content of a specific page?\n\n---\n\n## 9. Complex Query - Triage Bugs\n\n**Prompt:**\n```\nFor project DemoProject and team Core Team:\n1. Get the current iteration\n2. List all unassigned bugs with priority 1 or 2\n3. Show me the top 5 by creation date\n```\n\n**Response:**\n\n**Current Iteration:** Sprint 12\n\nFound 12 unassigned bugs with priority 1 or 2. Here are the top 5 by creation date:\n\n1. **Bug 10101** - Critical: Database connection timeout\n   - Priority: 1\n   - State: New\n   - Created: 2025-01-15T09:23:00Z\n\n2. **Bug 10099** - Memory leak in background service\n   - Priority: 1\n   - State: Active\n   - Created: 2025-01-14T16:45:00Z\n\n3. **Bug 10087** - UI rendering issue on mobile\n   - Priority: 2\n   - State: New\n   - Created: 2025-01-13T11:30:00Z\n\n4. **Bug 10085** - API timeout on large requests\n   - Priority: 2\n   - State: New\n   - Created: 2025-01-12T14:20:00Z\n\n5. **Bug 10082** - Login redirect fails intermittently\n   - Priority: 1\n   - State: Active\n   - Created: 2025-01-11T10:15:00Z\n\nWould you like to assign any of these or see more details?\n\n\n\u003c/details\u003e\n\n## Resources 📚\n- [Azure DevOps MCP](https://github.com/microsoft/azure-devops-mcp)\n- [Get started using the Azure MCP Server with Python](https://learn.microsoft.com/en-us/azure/developer/azure-mcp-server/get-started/languages/python)\n- [Azure MCP Troubleshooting](https://github.com/microsoft/azure-devops-mcp/blob/9c8ccd00a9e4a082f701abf225f00e168d03742a/docs/TROUBLESHOOTING.md)\n- [Azure DevOps Client for Node.js](https://github.com/microsoft/azure-devops-node-api) | [Azure DevOps Python API](https://github.com/microsoft/azure-devops-python-api)\n- [TF400813 Authentication Error: MCP Server Uses Different User ID Than Azure CLI](https://github.com/microsoft/azure-devops-mcp/issues/413)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimtth%2Fmcp-azure-devops-client-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimtth%2Fmcp-azure-devops-client-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimtth%2Fmcp-azure-devops-client-demo/lists"}