Skip to main content
Glama

ado_list_areas

List available project areas in Azure DevOps to organize work items and track development progress effectively.

Instructions

Lista las áreas disponibles en el proyecto

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The registration and handler implementation for the ado_list_areas tool. It uses getWitApi to fetch area nodes and then formats them into a readable text tree.
    server.tool(
      "ado_list_areas",
      "Lista las áreas disponibles en el proyecto",
      {},
      async () => {
        const api = await getWitApi();
        const areas = await api.getClassificationNode(
          currentProject,
          witInterfaces.TreeStructureGroup.Areas,
          undefined,
          10
        );
    
        function formatAreas(
          node: witInterfaces.WorkItemClassificationNode,
          indent: string = ""
        ): string {
          let result = `${indent}${node.name}\n`;
          if (node.children) {
            for (const child of node.children) {
              result += formatAreas(child, indent + "  ");
            }
          }
          return result;
        }
    
        const result = formatAreas(areas);
    
        return {
          content: [{ type: "text", text: result }],
        };
      }
    );

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