@mcp-apps/azure-devops-mcp-server
Version:
A Model Context Protocol (MCP) server for Azure DevOps integration
90 lines (89 loc) • 2.5 kB
TypeScript
import { z } from "zod";
export declare const listRepositoriesTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
};
handler: ({ organizationUrl, project }: {
organizationUrl: string;
project: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};
export declare const listPullRequestsTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
repositoryName: z.ZodString;
status: z.ZodDefault<z.ZodEnum<["active", "abandoned", "completed", "all"]>>;
};
handler: ({ organizationUrl, project, repositoryName, status }: {
organizationUrl: string;
project: string;
repositoryName: string;
status: "active" | "abandoned" | "completed" | "all";
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};
export declare const getRepositoryFileTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
repositoryName: z.ZodString;
filePath: z.ZodString;
branch: z.ZodDefault<z.ZodString>;
};
handler: ({ organizationUrl, project, repositoryName, filePath, branch }: {
organizationUrl: string;
project: string;
repositoryName: string;
filePath: string;
branch: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};
export declare const createPullRequestTool: {
name: string;
description: string;
parameters: {
organizationUrl: z.ZodString;
project: z.ZodString;
repositoryName: z.ZodString;
sourceBranch: z.ZodString;
targetBranch: z.ZodDefault<z.ZodString>;
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
};
handler: ({ organizationUrl, project, repositoryName, sourceBranch, targetBranch, title, description }: {
organizationUrl: string;
project: string;
repositoryName: string;
sourceBranch: string;
targetBranch: string;
title: string;
description?: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
}>;
};