list_files
Browse repository contents by listing files at a specified path within Azure DevOps projects to manage source code and track changes.
Instructions
Lists files in a repository at a specified path.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. | |
| repository_id | Yes | The name or ID of the repository. | |
| path | Yes | The path to list files from. |
Implementation Reference
- The core handler function that lists files in an Azure DevOps git repository using the GitClient API.def list_files(self, project, repository_id, path): return self.git_client.get_items( project=project, repository_id=repository_id, scope_path=path, recursion_level='full' )
- mcp_azure_devops/server.py:476-497 (schema)The input schema definition for the list_files tool, specifying parameters project, repository_id, and path.name="list_files", description="Lists files in a repository at a specified path.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "repository_id": { "type": "string", "description": "The name or ID of the repository." }, "path": { "type": "string", "description": "The path to list files from." }, }, "required": ["project", "repository_id", "path"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:1051-1052 (registration)The dispatch logic in the call_tool handler that routes 'list_files' invocations to the client method.elif name == "list_files": return self.client.list_files(**arguments)