create_wiki_page
Create new wiki pages in Azure DevOps projects to document processes, share knowledge, and maintain team documentation.
Instructions
Creates a new wiki page with specified content.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project. | |
| wiki_identifier | Yes | The name or ID of the wiki. | |
| path | Yes | The path of the wiki page. | |
| content | Yes | The content of the wiki page. |
Implementation Reference
- mcp_azure_devops/server.py:953-959 (handler)MCP server tool dispatch handler for 'create_wiki_page' that invokes the client method and formats the response.elif name == "create_wiki_page": page = self.client.create_wiki_page(**arguments) return { "path": page.page.path, "url": page.page.url, "content": page.page.content, }
- mcp_azure_devops/server.py:307-333 (schema)Tool schema definition including input validation for parameters: project, wiki_identifier, path, content.types.Tool( name="create_wiki_page", description="Creates a new wiki page with specified content.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "wiki_identifier": { "type": "string", "description": "The name or ID of the wiki." }, "path": { "type": "string", "description": "The path of the wiki page." }, "content": { "type": "string", "description": "The content of the wiki page." }, }, "required": ["project", "wiki_identifier", "path", "content"], "additionalProperties": False } ),
- Core handler function in AzureDevOpsClient that creates a wiki page by calling the Azure DevOps wiki_client.create_or_update_page API.def create_wiki_page(self, project, wiki_identifier, path, content): parameters = { "content": content } return self.wiki_client.create_or_update_page( project=project, wiki_identifier=wiki_identifier, path=path, parameters=parameters, version=None )
- mcp_azure_devops/server.py:857-862 (registration)MCP server registration handler that lists all tools including 'create_wiki_page' by returning the self.tools list populated earlier.@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