Skip to main content
Glama

ado_configure

Configure Azure DevOps connection using personal access tokens (PAT) to manage work items, sprints, and project data through the MCP server.

Instructions

Configura la conexión a Azure DevOps con token de acceso personal (PAT).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organizationYesURL de la organización (ej: https://dev.azure.com/mi-org)
projectYesNombre del proyecto
patYesToken de acceso personal (PAT) de Azure DevOps

Implementation Reference

  • The handler function for 'ado_configure' that establishes the Azure DevOps connection.
    async ({ organization, project, pat }) => {
      const authHandler = azdev.getPersonalAccessTokenHandler(pat);
      connection = new azdev.WebApi(organization, authHandler);
      workItemTrackingApi = null;
      coreApiClient = null;
      currentProject = project;
      currentPat = pat;
      currentOrg = organization;
    
      // Verificar conexión
      try {
        const connData = await connection.connect();
        return {
          content: [
            {
              type: "text",
              text: `Conexión establecida exitosamente.\n- Organización: ${organization}\n- Proyecto: ${project}\n- Usuario autenticado: ${connData.authenticatedUser?.providerDisplayName || "N/A"}`,
            },
          ],
        };
      } catch (error: any) {
        connection = null;
        throw new Error(`Error al conectar: ${error.message}`);
      }
  • src/index.ts:181-217 (registration)
    The tool registration for 'ado_configure' using server.tool.
    server.tool(
      "ado_configure",
      "Configura la conexión a Azure DevOps con token de acceso personal (PAT).",
      {
        organization: z
          .string()
          .describe("URL de la organización (ej: https://dev.azure.com/mi-org)"),
        project: z.string().describe("Nombre del proyecto"),
        pat: z
          .string()
          .describe("Token de acceso personal (PAT) de Azure DevOps"),
      },
      async ({ organization, project, pat }) => {
        const authHandler = azdev.getPersonalAccessTokenHandler(pat);
        connection = new azdev.WebApi(organization, authHandler);
        workItemTrackingApi = null;
        coreApiClient = null;
        currentProject = project;
        currentPat = pat;
        currentOrg = organization;
    
        // Verificar conexión
        try {
          const connData = await connection.connect();
          return {
            content: [
              {
                type: "text",
                text: `Conexión establecida exitosamente.\n- Organización: ${organization}\n- Proyecto: ${project}\n- Usuario autenticado: ${connData.authenticatedUser?.providerDisplayName || "N/A"}`,
              },
            ],
          };
        } catch (error: any) {
          connection = null;
          throw new Error(`Error al conectar: ${error.message}`);
        }
      }
  • The Zod schema definition for 'ado_configure' input parameters.
    {
      organization: z
        .string()
        .describe("URL de la organización (ej: https://dev.azure.com/mi-org)"),
      project: z.string().describe("Nombre del proyecto"),
      pat: z
        .string()
        .describe("Token de acceso personal (PAT) de Azure DevOps"),
    },

Latest Blog Posts

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/soulberto/mcp-azure'

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