Skip to main content
Glama

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
NameRequiredDescriptionDefault
projectYesThe name or ID of the project.
repository_idYesThe name or ID of the repository.
pathYesThe 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'
        )
  • 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
        }
    ),
  • 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)

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