Skip to main content
Glama

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
NameRequiredDescriptionDefault

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
  • 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
        }
    ),
  • 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
        }
    ),
  • 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()

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