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
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. | |
| name | Yes | The name of the wiki to create. |
Implementation Reference
- mcp_azure_devops/server.py:993-1000 (handler)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, }
- mcp_azure_devops/server.py:444-457 (schema)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
- mcp_azure_devops/server.py:441-459 (registration)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)