Skip to main content
Glama

Azure DevOps MCP Server

feature.ts1.16 kB
import * as azureDevOpsClient from '../../../clients/azure-devops'; import { UpdateWikiPageSchema } from './schema'; import { z } from 'zod'; import { defaultOrg, defaultProject } from '../../../utils/environment'; /** * Options for updating a wiki page */ export type UpdateWikiPageOptions = z.infer<typeof UpdateWikiPageSchema>; /** * Updates a wiki page in Azure DevOps * @param options - The options for updating the wiki page * @returns The updated wiki page */ export async function updateWikiPage(options: UpdateWikiPageOptions) { const validatedOptions = UpdateWikiPageSchema.parse(options); const { organizationId, projectId, wikiId, pagePath, content, comment } = validatedOptions; // Create the client const client = await azureDevOpsClient.getWikiClient({ organizationId: organizationId ?? defaultOrg, }); // Prepare the wiki page content const wikiPageContent = { content, }; // Update the wiki page const updatedPage = await client.updatePage( wikiPageContent, projectId ?? defaultProject, wikiId, pagePath, { comment: comment ?? undefined, }, ); return updatedPage; }

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/Tiberriver256/mcp-server-azure-devops'

If you have feedback or need assistance with the MCP directory API, please join our Discord server