Skip to main content
Glama
nikydobrev

Azure DevOps Multi-Organization MCP Server

by nikydobrev

list_projects

Retrieve all projects within a specified Azure DevOps organization to manage and organize development work across teams.

Instructions

Lists all projects in an Azure DevOps organization

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
organizationYesThe name of the Azure DevOps organization

Implementation Reference

  • The handler function for the 'list_projects' tool. It retrieves the connection for the specified organization, gets the Core API, fetches the projects, and returns them as JSON text or an error message.
    async ({ organization }) => { try { const connection = await connectionManager.getConnection(organization); const coreApi = await connection.getCoreApi(); const projects = await coreApi.getProjects(); return { content: [{ type: "text", text: JSON.stringify(projects, null, 2) }], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } }
  • Input schema for the 'list_projects' tool, requiring an 'organization' string parameter.
    { organization: z.string().describe("The name of the Azure DevOps organization"), },
  • Direct registration of the 'list_projects' tool using server.tool() within the registerOrganizationTools function.
    server.tool( "list_projects", "Lists all projects in an Azure DevOps organization", { organization: z.string().describe("The name of the Azure DevOps organization"), }, async ({ organization }) => { try { const connection = await connectionManager.getConnection(organization); const coreApi = await connection.getCoreApi(); const projects = await coreApi.getProjects(); return { content: [{ type: "text", text: JSON.stringify(projects, null, 2) }], }; } catch (error: any) { return { content: [{ type: "text", text: `Error: ${error.message}` }], isError: true, }; } } );
  • src/tools/index.ts:8-8 (registration)
    Higher-level registration call to registerOrganizationTools from the main tools index, which includes the 'list_projects' tool.
    registerOrganizationTools(server, connectionManager);

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/nikydobrev/mcp-server-azure-devops-multi'

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