@mcp-apps/azure-devops-mcp-server
Version:
A Model Context Protocol (MCP) server for Azure DevOps integration
40 lines (39 loc) • 1.48 kB
TypeScript
import { z } from "zod";
import * as GitInterfaces from "azure-devops-node-api/interfaces/GitInterfaces";
declare const STATUS_MAP: Record<string, GitInterfaces.CommentThreadStatus>;
export declare const addPullRequestCommentTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
repositoryName: z.ZodString;
pullRequestId: z.ZodNumber;
content: z.ZodString;
status: z.ZodDefault<z.ZodEnum<["active", "fixed", "won't-fix", "closed", "by-design", "pending"]>>;
filePath: z.ZodOptional<z.ZodString>;
rightStartLine: z.ZodOptional<z.ZodNumber>;
rightStartColumn: z.ZodOptional<z.ZodNumber>;
rightEndLine: z.ZodOptional<z.ZodNumber>;
rightEndColumn: z.ZodOptional<z.ZodNumber>;
};
handler: ({ organizationUrl, project, repositoryName, pullRequestId, content, status, filePath, rightStartLine, rightStartColumn, rightEndLine, rightEndColumn, }: {
organizationUrl: string;
project: string;
repositoryName: string;
pullRequestId: number;
content: string;
status: keyof typeof STATUS_MAP;
filePath?: string;
rightStartLine?: number;
rightStartColumn?: number;
rightEndLine?: number;
rightEndColumn?: number;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};
export {};