get_projects
Retrieve all projects from your Azure DevOps organization to view and manage development initiatives.
Instructions
Gets a list of all projects in the organization.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- mcp_azure_devops/server.py:545-553 (registration)Registers the 'get_projects' tool, including its schema (empty input) and description, as part of the tools list returned by list_tools().types.Tool( name="get_projects", description="Gets a list of all projects in the organization.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
- mcp_azure_devops/server.py:1061-1063 (handler)The handler logic within _execute_tool() for the 'get_projects' tool: fetches projects using the client and returns a dictionary with project names.elif name == "get_projects": projects = self.client.get_projects() return {"projects": [p.name for p in projects]}
- Helper method in AzureDevOpsClient that delegates to the core Azure DevOps SDK client to retrieve the list of projects.def get_projects(self): return self.core_client.get_projects()