create_wiki
Create a new wiki in an Azure DevOps project to document project information, processes, and team knowledge for improved collaboration.
Instructions
Creates a new wiki in a project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the wiki to create. | |
| project | Yes | The name or ID of the project. |
Implementation Reference
- mcp_azure_devops/server.py:993-1000 (handler)MCP tool handler for 'create_wiki' that dispatches to the AzureDevOpsClient and formats 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, }
- mcp_azure_devops/server.py:441-459 (schema)Input schema definition for the 'create_wiki' tool, specifying parameters project and name.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 } ),
- mcp_azure_devops/server.py:857-862 (registration)Registration of tools via the list_tools MCP handler, which returns the self.tools list including 'create_wiki'.@self.server.list_tools() async def list_tools() -> List[types.Tool]: """Return the list of available tools.""" logger.info(f"Tools requested - returning {len(self.tools)} tools") self.tools_registered = True return self.tools
- Core helper method in AzureDevOpsClient that implements wiki creation using the Azure DevOps wiki_client API.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)