import * as azdev from "azure-devops-node-api";
import { PAT, ORG_URL } from "../config/env.js";
// Azure DevOps client setup
// We can safely assert non-null as env.ts validates these values
const authHandler = azdev.getPersonalAccessTokenHandler(PAT as string);
export const connection = new azdev.WebApi(ORG_URL as string, authHandler);
// Initialize and export API clients
export async function getGitClient() {
console.error("[Auth] Getting Git API client");
return await connection.getGitApi();
}
export async function getWorkItemClient() {
console.error("[Auth] Getting Work Item API client");
return await connection.getWorkItemTrackingApi();
}
export async function getWikiClient() {
console.error("[Auth] Getting Wiki API client");
return await connection.getWikiApi();
}
export async function getCoreClient() {
console.error("[Auth] Getting Core API client");
return await connection.getCoreApi();
}
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/mmruesch12/azdo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server