@mcp-apps/azure-devops-mcp-server
Version:
A Model Context Protocol (MCP) server for Azure DevOps integration
36 lines (35 loc) • 1.06 kB
TypeScript
import { z } from "zod";
declare const VOTE_VALUES: {
readonly approve: 10;
readonly "approve-with-suggestions": 5;
readonly reset: 0;
readonly "wait-for-author": -5;
readonly reject: -10;
};
type VoteName = keyof typeof VOTE_VALUES;
export declare const setPullRequestVoteTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
repositoryName: z.ZodString;
pullRequestId: z.ZodNumber;
vote: z.ZodEnum<["approve", "approve-with-suggestions", "reset", "wait-for-author", "reject"]>;
reviewerId: z.ZodOptional<z.ZodString>;
};
handler: ({ organizationUrl, project, repositoryName, pullRequestId, vote, reviewerId, }: {
organizationUrl: string;
project: string;
repositoryName: string;
pullRequestId: number;
vote: VoteName;
reviewerId?: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};
export {};