MetorialDocs

Set up Azure DevOps in Metorial for Claude, ChatGPT and Cursor

Share Azure DevOps with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 13 tools (6 read-only).

To give your team Azure DevOps in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Azure DevOps integration in a Metorial portal, and each person signs in to Azure DevOps with their own account. Agents can manage Git repositories, branches, commits, and pull requests. The integration has 13 tools, 6 read-only, 6 write and 1 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Azure DevOps in a portal and how each person connects
  • The 16 OAuth scopes Azure DevOps can request, and what each one allows
  • How to keep the 6 read-only tools and reject the other 7

Before you start

Sign-in methods

MethodTypeWhat a person provides
Personal Access TokenAPI tokenpersonalAccessToken
Work Only (default)OAuthSigns in to Azure DevOps
Work & PersonalOAuthSigns in to Azure DevOps

The portal and metorial setup use Work Only unless someone picks another method.

Personal Access Token

To connect, a person enters:

  • personalAccessToken: Azure DevOps Personal Access Token (PAT)

Work Only

People sign in to Azure DevOps and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
vso.profileProfileRead user profile
vso.identityIdentityRead identities and groups
vso.projectProject ReadRead projects and teams
vso.project_manageProject ManageCreate and manage projects
vso.workWork Items ReadRead work items, boards, and queries
vso.work_writeWork Items WriteCreate and update work items
vso.work_fullWork Items FullFull access to work items including delete
vso.codeCode ReadRead repositories and code
vso.code_writeCode WriteRead and write repositories
vso.code_manageCode ManageFull access to code repositories
vso.buildBuild ReadRead build pipelines and results
vso.build_executeBuild ExecuteRead and execute build pipelines
vso.wikiWiki ReadRead Azure DevOps wikis and pages
vso.wiki_writeWiki WriteCreate and update Azure DevOps wikis and pages
vso.release_manageRelease ManageManage release pipelines
vso.hooks_writeService Hooks WriteCreate and manage service hook subscriptions

Work & Personal

It requests the same scopes as Work Only.

Setup settings

Whichever method you pick, setup also asks for:

  • organization: Azure DevOps organization name (e.g. "myorg" from https://dev.azure.com/myorg)
  • project (optional): Default project name. If not set, must be provided per-tool call.

Use your own Azure DevOps OAuth app

With your own OAuth app, people see your company's name on the Azure DevOps consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Azure DevOps and copy the Redirect URI.

Register the app

In the Microsoft Entra admin center, go to Entra ID, App registrations and select New registration. Under Authentication, add a redirect URI on the Web platform and paste the one from Metorial. Create a client secret under Certificates & secrets and copy its Value, which Microsoft shows only once.

The Microsoft 365 guide covers the app registration, client secret and admin consent in Microsoft Entra step by step.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Azure DevOps integration.

Admin: share Azure DevOps in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Azure DevOps. Under Auth Method, keep Work Only or pick another. For how members connect, choose Each person connects, so everyone signs in to Azure DevOps as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Azure DevOps.

Choose who gets it

Add the access groups that should see Azure DevOps. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Azure DevOps integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "azure devops"

Employee: connect Azure DevOps

In the portal

Open Azure DevOps in the catalog

Sign in to your portal and open Azure DevOps. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. An Azure DevOps sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "azure devops"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Work Only. To connect with Personal Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Azure DevOps connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "azure devops"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 6 read-only tools, such as list_builds and get_work_item, and lose the 6 write tools, such as manage_wiki or run_pipeline, and the destructive tool delete_work_item.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "azure devops"
metorial tools <integration-id>
metorial call <integration-id> list_builds -d '{}'

metorial tools lists the 13 tools, minus any you rejected. list_builds takes no input. It lists recent builds in a project.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (6)

  • list_pipelines: List pipelines in a project.
  • query_work_items: Search for work items using WIQL (Work Item Query Language) or simple filters.
  • list_projects: List all projects in the Azure DevOps organization.
  • get_pipeline_run: Get details of a specific pipeline run, or list recent runs for a pipeline. Needs pipelineId.
  • get_work_item: Retrieve one or more work items by ID. Needs workItemIds.
  • list_builds: List recent builds in a project.

Write tools (6)

  • manage_repository: List, get, or create Git repositories in a project. Needs action.
  • manage_wiki: List wikis, read wiki pages, and create or update wiki page content. Needs action.
  • create_work_item: Create a new work item (bug, task, user story, epic, feature, or any custom type) in a project. Needs workItemType and title.
  • update_work_item: Update an existing work item. Needs workItemId.
  • manage_pull_request: Create, list, get, update, and complete pull requests. Needs repositoryId and action.
  • run_pipeline: Trigger a pipeline run. Needs pipelineId.

Destructive tools (1)

  • delete_work_item: Delete a work item by moving it to the recycle bin, or permanently destroy it. Needs workItemId.

Triggers

Azure DevOps has 4 triggers, which fire on events in Azure DevOps:

  • work_item_events: Fires when work items are created, updated, deleted, restored, or commented on.
  • build_pipeline_events: Fires when builds complete or pipeline run states change.
  • pull_request_events: Fires when pull requests are created, updated, merge-attempted, or commented on.
  • code_push_events: Fires when code is pushed to a Git repository.

Next steps