Skip to main content
Glama

Azure DevOps MCP Server with PAT Authentication

by ennuiii
prompts.ts2.04 kB
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { z } from "zod"; import { CORE_TOOLS } from "./tools/core.js"; import { WORKITEM_TOOLS } from "./tools/workitems.js"; function configurePrompts(server: McpServer) { server.prompt("Projects", "Lists all projects in the Azure DevOps organization.", {}, () => ({ messages: [ { role: "user", content: { type: "text", text: String.raw` # Task Use the '${CORE_TOOLS.list_projects}' tool to retrieve all 'wellFormed' projects in the current Azure DevOps organization. Present the results in alphabetical order in a table with the following columns: Name and ID.`, }, }, ], })); server.prompt("Teams", "Retrieves all teams for a given Azure DevOps project.", { project: z.string() }, ({ project }) => ({ messages: [ { role: "user", content: { type: "text", text: String.raw` # Task Use the '${CORE_TOOLS.list_project_teams}' tool to retrieve all teams for the project '${project}'. Present the results in alphabetical order in a table with the following columns: Name and Id`, }, }, ], })); server.prompt( "getWorkItem", "Retrieves details for a specific Azure DevOps work item by ID.", { id: z.string().describe("The ID of the work item to retrieve."), project: z.string().describe("The name or ID of the Azure DevOps project.") }, ({ id, project }) => ({ messages: [ { role: "user", content: { type: "text", text: String.raw` # Task Use the '${WORKITEM_TOOLS.get_work_item}' tool to retrieve details for the work item with ID '${id}' in project '${project}'. Present the following fields: ID, Title, State, Assigned To, Work Item Type, Description or Repro Steps, and Created Date.`, }, }, ], }) ); } export { configurePrompts };

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/ennuiii/DevOpsMcpPAT'

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