Skip to main content
Glama

Azure DevOps MCP Server for Cline

import * as azdev from 'azure-devops-node-api'; import { WebApi } from 'azure-devops-node-api'; import { AzureDevOpsConfig } from '../config/environment.js'; import { WikiApi } from './wiki.js'; export class AzureDevOpsConnection { private static instance: WebApi | null = null; private static config: AzureDevOpsConfig; private static wikiApi: WikiApi | null = null; public static initialize(config: AzureDevOpsConfig): void { this.config = config; // Reset instances when config changes this.instance = null; this.wikiApi = null; } public static getInstance(): WebApi { if (!this.config) { throw new Error('AzureDevOpsConnection must be initialized with config before use'); } if (!this.instance) { const authHandler = azdev.getPersonalAccessTokenHandler(this.config.pat); this.instance = new azdev.WebApi(this.config.orgUrl, authHandler); } return this.instance; } public static getWikiApi(): WikiApi { if (!this.config) { throw new Error('AzureDevOpsConnection must be initialized with config before use'); } if (!this.wikiApi) { const connection = this.getInstance(); this.wikiApi = new WikiApi(connection, this.config); } return this.wikiApi; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stefanskiasan/azure-devops-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server