Skip to main content
Glama

@slorenzot/mcp-azure

MCP-сервер (Model Context Protocol) для Azure DevOps. Позволяет взаимодействовать с рабочими элементами (Work Items), Git-репозиториями, Pull Request'ами, спринтами, областями, комментариями и вложениями из любого совместимого MCP-клиента.

Установка

npm install -g @slorenzot/mcp-azure

Или используйте напрямую через npx:

npx @slorenzot/mcp-azure

Related MCP server: devops-wrangler

Настройка

Переменные окружения

Сервер автоматически настраивается с использованием следующих переменных окружения:

Переменная

Альтернатива

Описание

Обязательно

AZURE_DEVOPS_ORG

ADO_ORG

URL организации (например: https://dev.azure.com/my-org)

Да

AZURE_DEVOPS_PAT

ADO_PAT

Personal Access Token

Да

AZURE_DEVOPS_PROJECT

ADO_PROJECT

Имя проекта

Нет

Настройка в Claude Desktop

Добавьте следующую конфигурацию в ваш файл claude_desktop_config.json:

{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["-y", "@slorenzot/mcp-azure"],
      "env": {
        "AZURE_DEVOPS_ORG": "https://dev.azure.com/tu-organizacion",
        "AZURE_DEVOPS_PAT": "tu-pat-aqui",
        "AZURE_DEVOPS_PROJECT": "tu-proyecto"
      }
    }
  }
}

Настройка в OpenCode

OpenCode использует тот же MCP, но настройку можно выполнить двумя способами:

Вариант 1: Начальная настройка с переменными окружения

  1. Настройте переменные окружения в вашей системе или в конфигурации OpenCode:

    export AZURE_DEVOPS_ORG="https://dev.azure.com/tu-organizacion"
    export AZURE_DEVOPS_PAT="tu-pat-aqui"
    export AZURE_DEVOPS_PROJECT="tu-proyecto"
  2. Или добавьте MCP-сервер в вашу конфигурацию OpenCode:

    {
      "mcpServers": {
        "azure-devops": {
          "command": "npx",
          "args": ["-y", "@slorenzot/mcp-azure"],
          "env": {
            "AZURE_DEVOPS_ORG": "https://dev.azure.com/tu-organizacion",
            "AZURE_DEVOPS_PAT": "tu-pat-aqui",
            "AZURE_DEVOPS_PROJECT": "tu-proyecto"
          }
        }
      }
    }

Вариант 2: Динамическая настройка с помощью ado_configure

OpenCode позволяет настроить подключение непосредственно во время сессии с помощью команды ado_configure:

{
  "organization": "https://dev.azure.com/tu-organizacion",
  "project": "tu-proyecto",
  "pat": "tu-pat-aqui"
}

Этот вариант полезен для переключения между различными организациями или проектами без изменения файла конфигурации.

Примечание: При использовании ado_configure подключение сохраняется в течение текущей сессии OpenCode.

Получение Personal Access Token (PAT)

  1. Перейдите в свою организацию Azure DevOps

  2. Нажмите на свой аватар (в правом верхнем углу)

  3. Выберите Personal Access Tokens

  4. Создайте новый токен со следующими разрешениями:

    • Work Items: Read & Write

    • Code: Read & Write (для операций с репозиториями и Pull Request'ами)

    • Project and Team: Read (опционально)

Доступные инструменты

Аутентификация

Инструмент

Описание

ado_configure

Настраивает подключение к организации, проекту и PAT

Work Items

Инструмент

Описание

ado_get_work_item

Получает Work Item по его ID

ado_create_work_item

Создает новый Work Item (User Story, Bug, Task и т.д.)

ado_update_work_item

Обновляет существующий Work Item

ado_get_work_item_type_fields

Получает доступные/обязательные поля для типа элемента

Запросы

Инструмент

Описание

ado_query_sprint

Запрашивает Work Items конкретного спринта

ado_query_area

Запрашивает Work Items конкретной области

ado_query_wiql

Выполняет пользовательский запрос WIQL

Структура проекта

Инструмент

Описание

ado_list_iterations

Выводит список итераций/спринтов проекта

ado_list_areas

Выводит список областей проекта

Git-репозитории

Инструмент

Описание

ado_list_repositories

Выводит список всех Git-репозиториев проекта

ado_get_repository

Получает детали конкретного репозитория по имени или ID

ado_list_branches

Выводит список веток (branches) репозитория

Pull Requests

Инструмент

Описание

ado_list_pull_requests

Выводит список Pull Request'ов с опциональными фильтрами (статус, ветки, автор, рецензент)

ado_get_pull_request

Получает полные детали Pull Request'а

ado_create_pull_request

Создает новый Pull Request

ado_update_pull_request

Обновляет свойства Pull Request'а (заголовок, описание, черновик)

ado_complete_pull_request

Завершает (merge) Pull Request с настраиваемой стратегией

ado_abandon_pull_request

Отменяет Pull Request

Рецензирование Pull Request'ов

Инструмент

Описание

ado_approve_pull_request

Одобряет Pull Request (голос: 10)

ado_reject_pull_request

Отклоняет Pull Request (голос: -10)

ado_get_pull_request_reviewers

Получает всех рецензентов и их голоса для Pull Request'а

ado_add_pull_request_reviewer

Добавляет рецензента в Pull Request

Комментарии к Pull Request'ам

Инструмент

Описание

ado_get_pull_request_threads

Получает все ветки комментариев Pull Request'а

ado_create_pull_request_thread

Создает новую ветку комментариев (общую или к коду)

ado_reply_to_pull_request_thread

Отвечает на существующую ветку комментариев

Информация о Pull Request'ах

Инструмент

Описание

ado_get_pull_request_commits

Получает все коммиты Pull Request'а

ado_get_pull_request_work_items

Получает Work Items, связанные с Pull Request'ом

ado_update_pull_request_thread_status

Обновляет статус ветки комментариев (Fixed, WontFix и т.д.)

Комментарии и обсуждения

Инструмент

Описание

ado_add_comment

Добавляет комментарий к Work Item (поддерживает Markdown)

ado_get_comments

Получает комментарии Work Item'а

Вложения

Инструмент

Описание

ado_upload_attachment

Загружает файл и возвращает URL вложения

ado_add_attachment

Добавляет вложение к Work Item'у

ado_get_attachments

Выводит список вложений Work Item'а

Примеры использования

Создание User Story

{
  "title": "Implementar login con OAuth",
  "type": "User Story",
  "description": "Como usuario quiero poder iniciar sesión con mi cuenta de Google",
  "areaPath": "MiProyecto\\Backend",
  "iterationPath": "MiProyecto\\Sprint 5",
  "fields": {
    "Custom.OKR": "Seguridad",
    "Custom.Prioridad": "Alta"
  }
}

Пользовательский запрос WIQL

{
  "wiql": "SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.State] = 'Active' AND [System.AssignedTo] = @Me ORDER BY [System.CreatedDate] DESC",
  "getDetails": true
}

Добавление комментария с Markdown

{
  "id": 12345,
  "comment": "## Análisis completado\n\n- Revisado el código\n- Identificados 3 issues\n\n**Próximo paso:** Corregir validaciones"
}

Загрузка и прикрепление файла

{
  "workItemId": 12345,
  "filePath": "/ruta/al/archivo.pdf",
  "comment": "Documento de especificaciones",
  "name": "Especificaciones Funcionales v2.0"
}

Привязка существующего вложения

{
  "workItemId": 12345,
  "attachmentUrl": "https://dev.azure.com/org/proj/_apis/wit/attachments/abc123",
  "comment": "Diseño de arquitectura",
  "name": "Arquitectura del Sistema"
}

Список репозиториев

{
  "includeHidden": false,
  "top": 50
}

Список активных Pull Request'ов

{
  "status": "Active",
  "top": 20
}

Создание Pull Request'а

{
  "repositoryId": "mi-repo",
  "sourceRefName": "refs/heads/feature-login",
  "targetRefName": "refs/heads/main",
  "title": "Implementar login con OAuth",
  "description": "Esta PR agrega soporte para login con Google OAuth",
  "reviewerIds": ["12345678-1234-1234-1234-1234567890ab"],
  "isDraft": false
}

Одобрение Pull Request'а

{
  "pullRequestId": 12345,
  "repositoryId": "mi-repo"
}

Завершение (Merge) Pull Request'а

{
  "pullRequestId": 12345,
  "repositoryId": "mi-repo",
  "mergeStrategy": "Squash",
  "deleteSourceBranch": true,
  "mergeCommitMessage": "Merge de feature-login"
}

Создание комментария к коду

{
  "pullRequestId": 12345,
  "repositoryId": "mi-repo",
  "content": "Por favor extraer esto en una función separada",
  "filePath": "/src/components/Login.tsx",
  "startLine": 45,
  "endLine": 52
}

Доступные промпты

Сервер включает предопределенные промпты для упрощения типичных задач:

Промпт

Описание

connect

Руководство по подключению к Azure DevOps

analyze_sprint

Анализирует состояние спринта

create_user_story

Создает структурированную User Story

daily_standup

Генерирует отчет для ежедневного стендапа

plan_sprint

Помогает спланировать спринт

bulk_update

Обновляет несколько Work Items одновременно

project_report

Генерирует отчет по проекту

report_bug

Создает структурированный отчет об ошибке (Bug report)

Ресурсы

Ресурс

URI

Описание

Статус подключения

ado://connection/status

Информация о текущем статусе подключения

Разработка

Требования

  • Node.js 18+

  • npm или yarn

Локальная установка

git clone https://github.com/slorenzot/mcp-azure.git
cd mcp-azure
npm install
npm run build

Доступные скрипты

npm run build    # Compila TypeScript
npm run start    # Inicia el servidor
npm run dev      # Modo desarrollo con watch

Лицензия

MIT

Автор

Soulberto Lorenzo - @slorenzot

Версия

2.4.1 - 34 инструмента доступны для Azure DevOps (Work Items, Git-репозитории, Pull Request'ы и т.д.)

Available Tools

36 tools
ado_abandon_pull_requestC

Abandona un Pull Request (cambia estado a Abandoned).

Inputs: pullRequestId (required), repositoryId.

ado_add_attachmentB

Agrega un adjunto a un Work Item existente. Maneja automáticamente concurrencia cuando múltiples adjuntos se agregan al mismo WI.

Inputs: workItemId (required), name, comment, filePath, +1 more.

ado_add_commentB

Agrega un comentario/entrada de discusión a un Work Item. Soporta formato Markdown.

Inputs: id (required), comment (required).

ado_add_pull_request_reviewerB

Agrega un revisor a un Pull Request.

Inputs: reviewerId (required), pullRequestId (required), vote, repositoryId.

ado_approve_pull_requestB

Aprueba un Pull Request (voto: 10).

Inputs: pullRequestId (required), reviewerId, repositoryId.

ado_complete_pull_requestC

Completa (merge) un Pull Request.

Inputs: pullRequestId (required), repositoryId, mergeStrategy, deleteSourceBranch, +2 more.

ado_configureB

Configura la conexión a Azure DevOps con token de acceso personal (PAT).

Inputs: pat (required), project (required), organization (required).

ado_create_pull_requestC

Crea un nuevo Pull Request.

Inputs: title (required), repositoryId (required), sourceRefName (required), targetRefName (required), +3 more.

ado_create_pull_request_threadB

Crea un nuevo hilo de comentarios (comentario general o comentario de código).

Inputs: content (required), pullRequestId (required), endLine, filePath, +2 more.

ado_create_work_itemA

Crea un nuevo Work Item en Azure DevOps. Usa ado_get_work_item_type_fields para ver campos requeridos.

Inputs: type (required), title (required), fields, areaPath, +3 more.

ado_delete_attachmentB

Elimina un adjunto de un Work Item removiendo su relación. Maneja automáticamente concurrencia cuando múltiples cambios afectan el mismo WI.

Inputs: workItemId (required), comment, attachmentUrl, attachmentName.

ado_delete_work_itemA

Elimina un Work Item en Azure DevOps. Por defecto realiza borrado lógico; usa destroy=true solo para eliminación permanente.

Inputs: id (required), confirm (required), destroy, expectedType.

ado_get_attachmentsB

Obtiene la lista de adjuntos de un Work Item

Inputs: id (required).

ado_get_commentsB

Obtiene los comentarios/historial de discusión de un Work Item

Inputs: id (required), top.

ado_get_pull_requestC

Obtiene detalles completos de un Pull Request.

Inputs: pullRequestId (required), repositoryId, includeCommits, includeWorkItems.

ado_get_pull_request_commitsC

Obtiene todos los commits de un Pull Request.

Inputs: pullRequestId (required), top, repositoryId.

ado_get_pull_request_reviewersA

Obtiene todos los revisores y sus votos de un Pull Request.

Inputs: pullRequestId (required), repositoryId.

ado_get_pull_request_threadsB

Obtiene todos los hilos de comentarios de un Pull Request.

Inputs: pullRequestId (required), repositoryId.

ado_get_pull_request_work_itemsB

Obtiene los work items vinculados a un Pull Request.

Inputs: pullRequestId (required), repositoryId.

ado_get_repositoryB

Obtiene detalles de un repositorio específico por nombre o ID.

Inputs: repositoryId (required).

ado_get_work_itemB

Obtiene un Work Item de Azure DevOps por su ID

Inputs: id (required), full.

ado_get_work_item_type_fieldsB

Obtiene los campos disponibles y requeridos para un tipo de Work Item

Inputs: workItemType (required).

ado_list_areasA

Lista las áreas disponibles en el proyecto

Inputs: no named parameters.

ado_list_branchesB

Lista las ramas (branches) de un repositorio.

Inputs: repositoryId (required), filter, includeStatuses.

ado_list_iterationsA

Lista las iteraciones/sprints disponibles en el proyecto

Inputs: no named parameters.

ado_list_pull_requestsA

Lista Pull Requests con filtros opcionales. Busca por repositorio o en todo el proyecto.

Inputs: top, status, creatorId, reviewerId, +3 more.

ado_list_repositoriesA

Lista todos los repositorios Git del proyecto.

Inputs: top, includeHidden.

ado_query_areaC

Consulta User Stories de un área específica en Azure DevOps

Inputs: areaPath (required), workItemType.

ado_query_sprintA

Consulta User Stories de un sprint específico en Azure DevOps

Inputs: iterationPath (required), state.

ado_query_wiqlC

Ejecuta una consulta WIQL personalizada en Azure DevOps

Inputs: wiql (required), getDetails.

ado_reject_pull_requestC

Rechaza un Pull Request (voto: -10).

Inputs: pullRequestId (required), reviewerId, repositoryId.

ado_reply_to_pull_request_threadC

Responde a un hilo de comentarios existente.

Inputs: content (required), threadId (required), pullRequestId (required), repositoryId.

ado_update_pull_requestC

Actualiza propiedades de un Pull Request (título, descripción, estado de borrador).

Inputs: pullRequestId (required), title, isDraft, description, +1 more.

ado_update_pull_request_thread_statusC

Actualiza el estado de un hilo de comentarios (ej: marcar como Fixed, WontFix, etc.).

Inputs: status (required), threadId (required), pullRequestId (required), repositoryId.

ado_update_work_itemC

Actualiza un Work Item existente en Azure DevOps

Inputs: id (required), state, title, fields, +2 more.

ado_upload_attachmentC

Sube un archivo como adjunto a Azure DevOps y devuelve la URL del adjunto

Inputs: filePath (required), fileName.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 36 tools

    Disambiguation5/5

    Each tool targets a distinct action and resource (e.g., create vs update vs delete work items, add vs upload attachments). No two tools have ambiguous purposes, ensuring clear agent selection.

    Naming Consistency5/5

    All tools follow the consistent pattern 'ado_verb_noun' (e.g., ado_create_work_item, ado_list_repositories). The prefix and verb-noun structure are uniform, making it easy to predict tool names.

    Tool Count4/5

    36 tools is slightly above the typical range, but the Azure DevOps domain is broad. Each tool covers a necessary operation (work items, PRs, repositories, queries, etc.), so the count feels justified rather than bloated.

    Completeness4/5

    The tool surface covers the main workflows: CRUD for work items and pull requests, attachments, comments, threads, repositories, and queries. Minor gaps exist (e.g., no create/delete branch or build pipeline tools), but core operations are present.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers