azure-devops-mcp-server

azure-devops-mcp-server

Enables interaction with Azure DevOps services including Boards, Repos, and Pipelines through natural language commands.

Category
访问服务器

README

azure-devops-mcp-server

Servidor MCP (Model Context Protocol) para Azure DevOps, implementado sobre stdio nativo — sin SDK de MCP ni dependencias externas más allá de dotenv. Expone Azure Boards, Azure Repos y Azure Pipelines como tools invocables por Claude.

Instalación y arranque

pnpm install        # instalar dependencias
pnpm start          # iniciar servidor MCP
pnpm dev            # iniciar con recarga automática (node --watch)

Variables de entorno requeridas (.env, ver .env.example):

Variable Descripción
AZURE_DEVOPS_PAT Personal Access Token de Azure DevOps
AZURE_DEVOPS_ORG Nombre de la organización (ej. movii)
AZURE_ASSIGNED_TO (Opcional) usuario para query_my_bugs (default en src/config.js)

Herramientas (tools) disponibles

Boards — src/boards/index.js

Tool Qué hace Ejemplo básico
query_my_bugs Lista los bugs activos asignados al usuario configurado en ASSIGNED_TO. query_my_bugs()
get_work_item Obtiene un work item por ID (título, estado, descripción, repro steps, discussion, etc.). get_work_item(id: 12767)
query_work_items Ejecuta una consulta WIQL y devuelve id/title/state/type de cada resultado. query_work_items(wiql: "SELECT [System.Id] FROM WorkItems WHERE [System.WorkItemType]='Bug' AND [System.State]<>'Closed'")
update_work_item_state Cambia el estado de un work item. update_work_item_state(id: 12767, state: "Active")
create_work_item Crea un work item (User Story, Task, Bug, ...) con título, descripción HTML, criterios de aceptación, area/iteration path, tags y — para Task — activity, originalEstimate, startDate/finishDate y parentId (enlaza como hija vía Hierarchy-Reverse). create_work_item(project: "movii-business-line", type: "Task", title: "Implementar endpoint de saldo", activity: "Development", originalEstimate: 8, startDate: "2026-07-10", finishDate: "2026-07-11", parentId: 4821)

Repos — src/repos/index.js

Tool Qué hace Ejemplo básico
get_repositories Lista los repositorios de un proyecto (id, nombre, rama por defecto). get_repositories(project: "internal")
search_code Busca texto en el código vía Azure DevOps Code Search (wildcards, AND/OR/NOT). search_code(searchText: "ValidatePSE", repositoryName: "moviired-portal", branch: "development", project: "internal")
get_file_content Lee el contenido de un archivo de un repo en una rama dada. get_file_content(repositoryId: "moviired-portal", path: "/app/Http/Controllers/PSEController.php", branch: "development", project: "internal")
create_branch Crea una rama nueva desde otra existente. create_branch(repositoryId: "moviired-portal", branchName: "bug/12767", sourceBranch: "development")
push_commit Hace commit de un archivo modificado en una rama existente. push_commit(repositoryId: "moviired-portal", branchName: "bug/12767", filePath: "/app/...php", content: "<...>", message: "fix: #12767")
create_pull_request Abre un PR entre dos ramas. create_pull_request(repositoryId: "moviired-portal", sourceBranch: "bug/12767", targetBranch: "development", title: "fix: #12767 - ...")
get_pull_request Consulta estado (active/completed/abandoned), merge status y fechas de un PR. get_pull_request(repositoryId: "moviired-portal", pullRequestId: 8095)

Pipelines — src/pipelines/index.js

Tool Qué hace Ejemplo básico
get_pipelines Lista los pipelines del proyecto. get_pipelines(project: "internal")
get_pipeline_runs Últimas ejecuciones de un pipeline (estado, resultado, fechas). get_pipeline_runs(pipelineId: 42, top: 5, project: "internal")

Cierre — src/services/index.js

Tool Qué hace Ejemplo básico
notify_task_completed Hook de cierre: persiste un reporte en reports/output.json y finaliza la tarea. notify_task_completed(taskId: "12767", summary: "Bug resuelto, PR #8095 mergeado", status: "success")

Todos los tools de proyecto (Repos/Pipelines/create_work_item) aceptan project — si se omite, usar el nombre exacto del proyecto Azure DevOps (no hay default global, cada llamada project-scoped lo exige). Los tools de Boards de solo-lectura/escritura de work items (get_work_item, query_work_items, update_work_item_state) son org-scoped: el ID de work item es único a nivel organización, no requieren project.

Qué agente usar para cada tarea

Tarea Agente Qué hace
Resolver/investigar un bug por ID bug-resolver Lee el work item, investiga el código (search_code → get_file_content), produce un plan de fix estructurado. No toca git.
Ejecutar el fix y abrir el PR repo-writer Recibe el plan de bug-resolver y ejecuta rama + commit + PR + notificación de cierre. No analiza bugs.
Verificar pipeline y cerrar el bug tras mergear el PR pipeline-monitor Verifica el resultado del pipeline post-merge; si pasó, cierra el work item y comenta la traza completa (duraciones, tokens).
Crear una historia de usuario o tarea nueva, con detalle profesional story-writer Investiga el código fuente relevante (repo Azure DevOps y/o ruta local), redacta introducción/objetivo/alcance/criterios de aceptación, y crea el work item directamente con create_work_item.
Desglosar una User Story existente en Tasks task-writer Lee la historia, investiga el repositorio asociado, propone/completa Tasks con activity, originalEstimate y fechas, y las crea enlazadas como hijas de la historia.

Ver CLAUDE.md para el flujo paso a paso de cada uno (bugs: diagnóstico → fix/PR → verificación de pipeline; historias: confirmación de contexto → story-writer; desglose de tareas: confirmación de contexto → task-writer).

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选