Skip to main content
Glama
nikydobrev

Azure DevOps Multi-Organization MCP Server

by nikydobrev

list_organizations

Retrieve all configured Azure DevOps organizations to manage pipelines, builds, and repositories across multiple accounts without switching contexts.

Instructions

Lists all available Azure DevOps organizations from the configuration

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Inline handler function for the list_organizations tool. Retrieves available organizations from the ConnectionManager and returns them as a formatted JSON text response.
    async () => { const orgs = connectionManager.getAvailableOrganizations(); return { content: [{ type: "text", text: JSON.stringify(orgs, null, 2) }], }; }
  • Registration of the list_organizations tool on the MCP server, including name, description, empty input schema, and inline handler.
    server.tool( "list_organizations", "Lists all available Azure DevOps organizations from the configuration", {}, async () => { const orgs = connectionManager.getAvailableOrganizations(); return { content: [{ type: "text", text: JSON.stringify(orgs, null, 2) }], }; } );
  • Helper method in ConnectionManager that provides the list of available organizations by delegating to ConfigLoader.
    public getAvailableOrganizations(): string[] { return this.configLoader.getOrganizations(); }
  • Higher-level tool registration function that invokes registerOrganizationTools (among others) to set up all tools.
    export function registerTools(server: McpServer, connectionManager: ConnectionManager) { registerOrganizationTools(server, connectionManager); registerPipelineTools(server, connectionManager); registerRepositoryTools(server, connectionManager); }
  • src/index.ts:14-14 (registration)
    Top-level call to register all tools, including list_organizations indirectly via the chain.
    registerTools(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