Skip to main content
Glama

list_repositories

Retrieve all repositories in an Azure DevOps project to manage codebase access and organization.

Instructions

Lists all repositories in a project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesThe name or ID of the project.

Implementation Reference

  • The core handler function that executes the list_repositories tool logic by calling the Azure DevOps Git client to retrieve repositories for a given project.
    def list_repositories(self, project):
        return self.git_client.get_repositories(project=project)
  • The input schema definition for the list_repositories tool, specifying that a 'project' parameter is required.
    types.Tool(
        name="list_repositories",
        description="Lists all repositories in a project.",
        inputSchema={
            "type": "object",
            "properties": {
                "project": {
                    "type": "string", 
                    "description": "The name or ID of the project."
                },
            },
            "required": ["project"],
            "additionalProperties": False
        }
    ),
  • The registration and dispatch logic in the MCP server's tool execution handler that routes calls to list_repositories to the client implementation.
    elif name == "list_repositories":
        return self.client.list_repositories(**arguments)

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

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