list_repositories
Retrieve all repositories within a specified Azure DevOps project to view available codebases and manage version control assets.
Instructions
Lists all repositories in a project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. |
Implementation Reference
- The core handler function that executes the tool logic by calling the Azure DevOps Git client to list repositories in the specified project.def list_repositories(self, project): return self.git_client.get_repositories(project=project)
- mcp_azure_devops/server.py:460-474 (registration)The tool registration in the server's tool list, including the name, description, and input schema definition.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 } ),
- mcp_azure_devops/server.py:463-473 (schema)The input schema for the list_repositories tool, specifying the required 'project' parameter.inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, }, "required": ["project"], "additionalProperties": False }
- mcp_azure_devops/server.py:1049-1050 (handler)The server-side dispatch handler that routes the tool call to the client's list_repositories method.elif name == "list_repositories": return self.client.list_repositories(**arguments)