Azure DevOps MCP 集成のロゴ

Azure DevOps MCP 集成

コミュニティ
RyanCardin15

A powerful integration for Azure DevOps that provides seamless access to work items, repositories, projects, boards, and sprints through the Model Context Protocol (MCP) server.

公開者RyanCardin15
リポジトリAzureDevOps-MCP
言語TypeScript
フォーク
29
スター
58
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    Azure DevOps MCP 集成は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには58件のスターと29件のフォークがあります。

Azure DevOps MCP Integration

Star History

Star History Chart

A powerful integration for Azure DevOps that provides seamless access to work items, repositories, projects, boards, and sprints through the Model Context Protocol (MCP) server.

Overview

This server provides a convenient API for interacting with Azure DevOps services, enabling AI assistants and other tools to manage work items, code repositories, boards, sprints, and more. Built with the Model Context Protocol, it provides a standardized interface for communicating with Azure DevOps.

Demo

Azure DevOps MCP Demo

Features

The integration is organized into eight main tool categories:

Work Item Tools

  • List work items using WIQL queries
  • Get work item details by ID
  • Search for work items
  • Get recently updated work items
  • Get your assigned work items
  • Create new work items
  • Update existing work items
  • Add comments to work items
  • Update work item state
  • Assign work items
  • Create links between work items
  • Bulk create/update work items

Boards & Sprints Tools

  • Get team boards
  • Get board columns
  • Get board items
  • Move cards on boards
  • Get sprints
  • Get the current sprint
  • Get sprint work items
  • Get sprint capacity
  • Get team members

Project Tools

  • List projects
  • Get project details
  • Create new projects
  • Get areas
  • Get iterations
  • Create areas
  • Create iterations
  • Get process templates
  • Get work item types
  • Get work item type fields

Git Tools

  • List repositories
  • Get repository details
  • Create repositories
  • List branches
  • Search code
  • Browse repositories
  • Get file content
  • Get commit history
  • List pull requests
  • Create pull requests
  • Get pull request details
  • Get changed files in a pull request
  • Get pull request comments
  • Approve pull requests
  • Merge pull requests

Testing Capabilities Tools

  • Run automated tests
  • Get test automation status
  • Configure test agents
  • Create test data generators
  • Manage test environments
  • Get test flakiness analysis
  • Get test gap analysis
  • Run test impact analysis
  • Get test health dashboard
  • Run test optimization
  • Create exploratory sessions
  • Record exploratory test results
  • Convert findings to work items
  • Get exploratory test statistics

DevSecOps Tools

  • Run security scans
  • Get security scan results
  • Track security vulnerabilities
  • Generate security compliance reports
  • Integrate SARIF results
  • Run compliance checks
  • Get compliance status
  • Create compliance reports
  • Manage security policies
  • Track security awareness
  • Rotate secrets
  • Audit secret usage
  • Configure vault integration

Artifact Management Tools

  • List artifact feeds
  • Get package versions
  • Publish packages
  • Promote packages
  • Delete package versions
  • List container images
  • Get container image tags
  • Scan container images
  • Manage container policies
  • Manage universal packages
  • Create package download reports
  • Check package dependencies

AI-Assisted Development Tools

  • Get AI-powered code reviews
  • Suggest code optimizations
  • Identify code smells
  • Get predictive bug analysis
  • Get developer productivity metrics
  • Get predictive effort estimations
  • Get code quality trends
  • Suggest work item refinements
  • Suggest automation opportunities
  • Create intelligent alerts
  • Predict build failures
  • Optimize test selection

Installation

Quick Start with NPX (Recommended)

The easiest way to use the Azure DevOps MCP server is via NPX:

bash
npx @ryancardin/azuredevops-mcp-server@latest

No installation or build steps required! Just set your environment variables and run.

One-Click Installation for Cursor

Click the button below to install the Azure DevOps MCP server directly in Cursor:

Add Azure DevOps MCP to Cursor

Important: After installation in Cursor, you must update the environment variables in your Cursor MCP configuration with your actual Azure DevOps details.

Learn more about Cursor deeplinks at https://docs.cursor.com/deeplinks

Alternative Installation Methods

Global NPM Installation

bash
npm install -g @ryancardin/azuredevops-mcp-server
azuredevops-mcp-server

Via Smithery (Claude Desktop)

bash
npx -y @smithery/cli install @RyanCardin15/azuredevops-mcp --client claude

Development Setup

For development or customization:

  1. Clone the repository:

    bash
    git clone https://github.com/RyanCardin15/AzureDevOps-MCP.git
    cd AzureDevOps-MCP
  2. Install dependencies:

    bash
    npm install
  3. Build the project:

    bash
    npm run build
  4. Run locally:

    bash
    npm start

Configuration

Prerequisites

  • Node.js (v16 or later)
  • An Azure DevOps account with a Personal Access Token (PAT) or appropriate credentials

Environment Variables

Configure the server using environment variables. You can set these in your shell, .env file, or in your MCP client configuration:

For Azure DevOps Services (Cloud)

bash
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/your-organization
AZURE_DEVOPS_PROJECT=your-default-project
AZURE_DEVOPS_IS_ON_PREMISES=false
AZURE_DEVOPS_AUTH_TYPE=pat
AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN=your-personal-access-token

For Azure DevOps Server (On-Premises)

bash
AZURE_DEVOPS_ORG_URL=https://your-server/tfs
AZURE_DEVOPS_PROJECT=your-default-project
AZURE_DEVOPS_IS_ON_PREMISES=true
AZURE_DEVOPS_COLLECTION=your-collection
AZURE_DEVOPS_API_VERSION=6.0
AZURE_DEVOPS_AUTH_TYPE=pat
AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN=your-personal-access-token

Alternative Authentication Methods (On-Premises)

bash
# NTLM Authentication
AZURE_DEVOPS_AUTH_TYPE=ntlm
AZURE_DEVOPS_USERNAME=your-username
AZURE_DEVOPS_PASSWORD=your-password
AZURE_DEVOPS_DOMAIN=your-domain

# Basic Authentication
AZURE_DEVOPS_AUTH_TYPE=basic
AZURE_DEVOPS_USERNAME=your-username
AZURE_DEVOPS_PASSWORD=your-password

# Entra ID Authentication (requires az CLI)
AZURE_DEVOPS_AUTH_TYPE=entra

Client Configuration

Cursor Configuration

Add this to your Cursor MCP settings:

json
{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["@ryancardin/azuredevops-mcp-server@latest"],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
        "AZURE_DEVOPS_PROJECT": "your-project",
        "AZURE_DEVOPS_IS_ON_PREMISES": "false",
        "AZURE_DEVOPS_AUTH_TYPE": "pat",
        "AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN": "your-personal-access-token"
      }
    }
  }
}

Claude Desktop Configuration

Add this to your Claude Desktop MCP configuration file:

json
{
  "mcpServers": {
    "azure-devops": {
      "command": "npx",
      "args": ["@ryancardin/azuredevops-mcp-server@latest"],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "https://dev.azure.com/your-organization",
        "AZURE_DEVOPS_PROJECT": "your-project",
        "AZURE_DEVOPS_IS_ON_PREMISES": "false",
        "AZURE_DEVOPS_AUTH_TYPE": "pat",
        "AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN": "your-personal-access-token"
      }
    }
  }
}

Creating a Personal Access Token (PAT)

For Azure DevOps Services (cloud), you'll need to create a Personal Access Token with appropriate permissions:

  1. Go to your Azure DevOps organization
  2. Click on your profile icon in the top right
  3. Select "Personal access tokens"
  4. Click "New Token"
  5. Give it a name and select the appropriate scopes:
    • Work Items: Read & Write
    • Code: Read & Write
    • Project and Team: Read & Write
    • Build: Read
    • Release: Read

For Azure DevOps Server (on-premises), create the PAT in your on-premises instance following similar steps.

Complete Environment Variables Reference

VariableDescriptionRequiredDefault
AZURE_DEVOPS_ORG_URLURL of your Azure DevOps organization or serverYes-
AZURE_DEVOPS_PROJECTDefault project to useYes-
AZURE_DEVOPS_IS_ON_PREMISESWhether using Azure DevOps ServerNofalse
AZURE_DEVOPS_COLLECTIONCollection name for on-premisesNo*-
AZURE_DEVOPS_API_VERSIONAPI version for on-premisesNo-
AZURE_DEVOPS_AUTH_TYPEAuthentication type (pat/ntlm/basic/entra)Nopat
AZURE_DEVOPS_PERSONAL_ACCESS_TOKENPersonal access token (for 'pat' auth)No**-
AZURE_DEVOPS_USERNAMEUsername for NTLM/Basic authNo**-
AZURE_DEVOPS_PASSWORDPassword for NTLM/Basic authNo**-
AZURE_DEVOPS_DOMAINDomain for NTLM authNo-
ALLOWED_TOOLSComma-separated list of tool methods to enableNoAll tools

* Required if AZURE_DEVOPS_IS_ON_PREMISES=true
** Required based on chosen authentication type

Tool Filtering with ALLOWED_TOOLS

The ALLOWED_TOOLS environment variable allows you to restrict which tool methods are available. This is completely optional - if not specified, all tools will be enabled.

Format: Comma-separated list of method names with no spaces.

Example:

ALLOWED_TOOLS=listWorkItems,getWorkItemById,searchWorkItems,createWorkItem

This would only enable the specified work item methods while disabling all others.

Entra ID Authentication

For Entra ID authentication, ensure you have Azure CLI installed and authenticated:

bash
az login

The server supports AZ CLI, AZD, and Azure PowerShell modules as long as you're authenticated.

Usage

Once the server is running, you can interact with it using the MCP protocol. The server exposes several tools for different Azure DevOps functionalities.

Available Tools

Note: By default, only a subset of tools are registered in the index.ts file to keep the initial implementation simple. See the Tool Registration section for information on how to register additional tools.

Example: List Work Items

json
{
  "tool": "listWorkItems",
  "params": {
    "query": "SELECT [System.Id], [System.Title], [System.State] FROM WorkItems WHERE [System.State] = 'Active' ORDER BY [System.CreatedDate] DESC"
  }
}

Example: Create a Work Item

json
{
  "tool": "createWorkItem",
  "params": {
    "workItemType": "User Story",
    "title": "Implement new feature",
    "description": "As a user, I want to be able to export reports to PDF.",
    "assignedTo": "john@example.com"
  }
}

Example: List Repositories

json
{
  "tool": "listRepositories",
  "params": {
    "projectId": "MyProject"
  }
}

Example: Create a Pull Request

json
{
  "tool": "createPullRequest",
  "params": {
    "repositoryId": "repo-guid",
    "sourceRefName": "refs/heads/feature-branch",
    "targetRefName": "refs/heads/main",
    "title": "Add new feature",
    "description": "This PR adds the export to PDF feature"
  }
}

Architecture

The project is structured as follows:

  • src/
    • Interfaces/: Type definitions for parameters and responses
    • Services/: Service classes for interacting with Azure DevOps APIs
    • Tools/: Tool implementations that expose functionality to clients
    • index.ts: Main entry point that registers tools and starts the server
    • config.ts: Configuration handling

Service Layer

The service layer handles direct communication with the Azure DevOps API:

  • WorkItemService: Work item operations
  • BoardsSprintsService: Boards and sprints operations
  • ProjectService: Project management operations
  • GitService: Git repository operations
  • TestingCapabilitiesService: Testing capabilities operations
  • DevSecOpsService: DevSecOps operations
  • ArtifactManagementService: Artifact management operations
  • AIAssistedDevelopmentService: AI-assisted development operations

Tools Layer

The tools layer wraps the services and provides a consistent interface for the MCP protocol:

  • WorkItemTools: Tools for work item operations
  • BoardsSprintsTools: Tools for boards and sprints operations
  • ProjectTools: Tools for project management operations
  • GitTools: Tools for Git operations
  • TestingCapabilitiesTools: Tools for testing capabilities operations
  • DevSecOpsTools: Tools for DevSecOps operations
  • ArtifactManagementTools: Tools for artifact management operations
  • AIAssistedDevelopmentTools: Tools for AI-assisted development operations

Tool Registration

The MCP server requires tools to be explicitly registered in the index.ts file. By default, only a subset of all possible tools are registered to keep the initial implementation manageable.

To register more tools:

  1. Open the src/index.ts file
  2. Add new tool registrations following the pattern of existing tools
  3. Build and restart the server

A comprehensive guide to tool registration is available in the TOOL_REGISTRATION.md file in the repository.

Note: When registering tools, be careful to use the correct parameter types, especially for enum values. The type definitions in the Interfaces directory define the expected types for each parameter. Using the wrong type (e.g., using z.string() instead of z.enum() for enumerated values) will result in TypeScript errors during build.

Example of registering a new tool:

typescript
server.tool("searchCode", 
  "Search for code in repositories",
  {
    searchText: z.string().describe("Text to search for"),
    repositoryId: z.string().optional().describe("ID of the repository")
  },
  async (params, extra) => {
    const result = await gitTools.searchCode(params);
    return {
      content: result.content,
      rawData: result.rawData,
      isError: result.isError
    };
  }
);

Troubleshooting

Common Issues

Authentication Errors

  • Ensure your Personal Access Token is valid and has the required permissions
  • Check that the organization URL is correct

unexpected status code: 203

  • This often indicates placeholder or incorrect configuration values were used
  • Verify AZURE_DEVOPS_ORG_URL uses your real org URL (not your-organization)
  • Verify AZURE_DEVOPS_PROJECT and AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN are real values

High Context/Token Consumption

  • Restrict tool registration with ALLOWED_TOOLS to only the methods you need
  • Example: ALLOWED_TOOLS=listWorkItems,getWorkItemById,listPullRequests,getPullRequestChangedFiles

TypeScript Errors During Build

  • Use npm run build:ignore-errors to bypass TypeScript errors
  • Check for missing or incorrect type definitions

Runtime Errors

  • Verify that the Azure DevOps project specified exists and is accessible

Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Please ensure your code passes linting and includes appropriate tests.

Verified on MseeP

smithery badge

インストール

TypingMind
{
  "mcpServers": {
    "azuredevops-mcp": {
      "command": "npx",
      "args": [
        "@ryancardin/azuredevops-mcp-server"
      ],
      "env": {
        "AZURE_DEVOPS_ORG_URL": "<AZURE_DEVOPS_ORG_URL>",
        "AZURE_DEVOPS_PROJECT": "<AZURE_DEVOPS_PROJECT>",
        "AZURE_DEVOPS_AUTH_TYPE": "<AZURE_DEVOPS_AUTH_TYPE>"
      }
    }
  }
}

Azure DevOps MCP 集成のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Azure DevOps MCP 集成に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Azure DevOps MCP 集成をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Azure DevOps MCP 集成のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "azuredevops-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@ryancardin/azuredevops-mcp-server"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてAzure DevOps MCP 集成のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Azure DevOps MCP 集成のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Azure DevOps MCP 集成を使ってこのタスクを手伝ってもらえますか?
Azure DevOps MCP 集成
はい、読みました。
Azure DevOps MCP 集成で調べた結果をお伝えします。

よくある質問

Azure DevOps MCP 集成 MCPサーバーは何に使いますか?

Azure DevOps MCP 集成は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでAzure DevOps MCP 集成 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでAzure DevOps MCP 集成を利用できます。

TypingMindでAzure DevOps MCP 集成 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Azure DevOps MCP 集成を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Azure DevOps MCP 集成 MCPをTypingMindに接続するにはどうすればよいですか?

Azure DevOps MCP 集成はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでAzure DevOps MCP 集成 MCPのどのようなツールを利用できますか?

Azure DevOps MCP 集成はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Azure DevOps MCP 集成 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Azure DevOps MCP 集成で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇