> ## Documentation Index
> Fetch the complete documentation index at: https://docs.matterai.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Install MatterAI On Azure DevOps

> Install MatterAI on Azure DevOps for AI Code Reviews and more

<Note>All Pricing and Features are same on Azure DevOps as on GitHub</Note>

# MatterAI Azure DevOps Integration

MatterAI seamlessly integrates with Azure DevOps to enhance your development workflow by:

* Automatically initiating AI-powered code reviews for new pull requests
* Displaying intelligent review comments directly within pull requests
* Providing real-time assistance through the MatterAI integration

Follow these steps to integrate MatterAI with your Azure DevOps repositories:

## Step 1: Create a Personal Access Token

1. Log in to your Azure DevOps organization
2. Click on your profile picture in the top right corner and select **Personal Access Tokens**
3. Click **+ New Token**
4. Enter a descriptive name (e.g., "MatterAI Integration")
5. Set an expiration date for the token
6. Select the organization where you want to use this token

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-0.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=b33089af9136d3a16335f9ef8fc1ef70" alt="Creating Personal Access Token" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-0.png" />
</Frame>

## Step 2: Configure Token Scopes

Select the following scopes for your Personal Access Token:

* **Build**: Read & Execute
* **Code**: Read & Write
* **Pull Request Threads**: Read & Write
* **Project and Team**: Read
* **User Profile**: Read
* **Work Items**: Read & Manage

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-1.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=88d729a5cd8154900709d2dd871e371c" alt="Configuring Token Scopes" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-1.png" />
</Frame>

<Note>
  Make sure to copy and securely save your Personal Access Token immediately
  after creation, as it will not be shown again.
</Note>

## Step 3: Connect to MatterAI

1. Navigate to **MatterAI** -> **Connectors** -> **Azure DevOps** and click on **Connect**. Console URL: [https://app.matterai.so/connectors](https://app.matterai.so/connectors)
2. Enter your **Personal Access Token** in the provided field
3. Enter your **Azure DevOps Organization URL** (e.g., `https://dev.azure.com/your-organization`)
4. Click **Save**

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-2.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=0acc512d1f66783268223ee3ede20790" alt="Connecting Azure DevOps in MatterAI" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-2.png" />
</Frame>

## Step 4: Test Connection and Manage Projects

1. Once connected, click on **Test Connection** to verify the integration is working properly
2. After successful connection, click on **Manage Projects** to view available repositories
3. MatterAI will retrieve all Azure DevOps projects and repositories associated with your token

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-3.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=534e6e5eccb8a4fffcaee9115b22a50f" alt="Testing Connection and Managing Projects" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-3.png" />
</Frame>

## Step 5: Configure Service Hooks

MatterAI requires Service Hooks to receive events from Azure DevOps:

1. The integration will automatically configure the necessary service hooks
2. These hooks notify MatterAI when pull requests are created or updated
3. Ensure your organization allows service hook creation for the integration

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-4.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=8d4a0e6fd75527cb877d26e9074a2ef4" alt="Configuring Service Hooks" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-4.png" />
</Frame>

## Step 6: Select Repositories

1. Browse through your Azure DevOps projects
2. Select the specific repositories you want to enable for AI code reviews
3. You can enable multiple repositories across different projects

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-5.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=1dc522e64317560fd45c2a1bb189f2dd" alt="Selecting Repositories" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-5.png" />
</Frame>

## Step 7: Enable Projects

1. Toggle the switch to enable MatterAI for each selected repository
2. MatterAI will automatically configure the required service hooks for all enabled repositories
3. The integration is now active and will process new pull requests

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-6.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=1f271535c6310476c7cddd16aafeb0a5" alt="Enabling Projects" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-6.png" />
</Frame>

<Note>
  This automated flow works on all Azure DevOps service tiers and supports both
  cloud-hosted and self-hosted Azure DevOps Server instances.
</Note>

## Done, Your Integration is Complete!

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-7.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=0fbb18f80411020a9bfeef584e1e0911" alt="Integration Complete" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-7.png" />
</Frame>

## Azure DevOps Code Reviews

### AI Pull Request Summary

Get comprehensive PR summaries in your Azure DevOps pull requests, always up to date with all the commits and changes.

MatterAI analyzes the entire pull request diff and provides:

* Overview of changes
* Key modifications summary
* Potential issues and suggestions
* Code quality insights

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-8.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=09faf39b63d503a0df4837f3888fdf11" alt="Creating Personal Access Token" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-8.png" />
</Frame>

### AI Review Comments

Receive intelligent code review comments directly in your Azure DevOps pull requests with:

* **Issue Detection**: Identify bugs, security vulnerabilities, and code smells
* **Fix Suggestions**: Get specific recommendations for improvements
* **One-Click Apply**: Apply suggested code fixes with a single click
* **Best Practices**: Learn about language-specific and framework-specific best practices

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/Or4Vptm4qPuNOLZo/images/connectors/azure-devops/matterai-azure-devop-integration-9.png?fit=max&auto=format&n=Or4Vptm4qPuNOLZo&q=85&s=47d846f1883b4e5e5ba1f7c162d29a36" alt="Creating Personal Access Token" width="2940" height="1912" data-path="images/connectors/azure-devops/matterai-azure-devop-integration-9.png" />
</Frame>

### Security Analysis

MatterAI performs comprehensive security scanning on your Azure DevOps pull requests:

* Detects common security vulnerabilities (OWASP Top 10)
* Identifies hardcoded secrets and credentials
* Flags insecure dependencies
* Provides remediation guidance

### Code Quality

Improve your codebase quality with AI-powered insights:

* Performance optimization suggestions
* Code complexity analysis
* Maintainability recommendations
* Test coverage insights
