Skip to main content
Glama

create_wiki

Create a new wiki in an Azure DevOps project to document processes, share knowledge, and organize team information.

Instructions

Creates a new wiki in a project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYesThe name or ID of the project.
nameYesThe name of the wiki to create.

Implementation Reference

  • The handler in the MCP server's _execute_tool method that handles calls to the 'create_wiki' tool by invoking the client's create_wiki method and formatting the response.
    elif name == "create_wiki":
        wiki = self.client.create_wiki(**arguments)
        return {
            "id": wiki.id,
            "name": wiki.name,
            "url": wiki.url,
            "remote_url": wiki.remote_url,
        }
  • The input schema definition for the 'create_wiki' tool, specifying parameters project and name.
    inputSchema={
        "type": "object",
        "properties": {
            "project": {
                "type": "string", 
                "description": "The name or ID of the project."
            },
            "name": {
                "type": "string", 
                "description": "The name of the wiki to create."
            },
        },
        "required": ["project", "name"],
        "additionalProperties": False
  • Registration of the 'create_wiki' tool in the server's tool list, including name, description, and schema.
    types.Tool(
        name="create_wiki",
        description="Creates a new wiki in a project.",
        inputSchema={
            "type": "object",
            "properties": {
                "project": {
                    "type": "string", 
                    "description": "The name or ID of the project."
                },
                "name": {
                    "type": "string", 
                    "description": "The name of the wiki to create."
                },
            },
            "required": ["project", "name"],
            "additionalProperties": False
        }
    ),
  • The core implementation of wiki creation in the AzureDevOpsClient class, which calls the Azure DevOps API to create a new wiki.
    def create_wiki(self, project, name):
        project_object = self.core_client.get_project(project)
        wiki_params = WikiCreateParametersV2(name=name, type='projectWiki', project_id=project_object.id)
        return self.wiki_client.create_wiki(wiki_create_params=wiki_params, project=project)

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