list_all_wikis_in_organization
Discover all wikis across projects in your Azure DevOps organization to find documentation and enable cross-project collaboration.
Instructions
List all wikis across all projects in the organization for cross-project discovery.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The primary handler function that implements the tool logic. It fetches all projects in the organization, retrieves wikis for each project using self.get_wikis(), collects wiki details (project, id, name, url, remote_url), handles exceptions by skipping inaccessible projects, and returns the aggregated list of all wikis.def list_all_wikis_in_organization(self): """ List all wikis across all projects in the organization. """ projects = self.get_projects() all_wikis = [] for project in projects: try: wikis = self.get_wikis(project.name) for wiki in wikis: all_wikis.append({ "project": project.name, "id": wiki.id, "name": wiki.name, "url": wiki.url, "remote_url": wiki.remote_url, }) except Exception: # Skip projects where we can't access wikis continue return all_wikis
- mcp_azure_devops/server.py:731-739 (registration)Registers the tool with the MCP server using types.Tool(), providing the name, description, and input schema (empty object since no parameters are required). This makes the tool available via @self.server.list_tools().types.Tool( name="list_all_wikis_in_organization", description="List all wikis across all projects in the organization for cross-project discovery.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
- mcp_azure_devops/server.py:734-739 (schema)Defines the input schema for the tool: an empty object with no properties, indicating the tool takes no input parameters.inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
- mcp_azure_devops/server.py:1037-1038 (handler)Server-side dispatch handler in _execute_tool() that receives tool calls and delegates execution to the client's list_all_wikis_in_organization() method.elif name == "list_all_wikis_in_organization": return self.client.list_all_wikis_in_organization()