@therealchristhomas/gitlab-mcp-server
Version:
MCP Server for GitLab API operations
27 lines (26 loc) • 1.18 kB
TypeScript
export declare class GitLabApiError extends Error {
status?: number | undefined;
details?: any | undefined;
constructor(message: string, status?: number | undefined, details?: any | undefined);
}
interface GitLabResponse<T> {
data: T;
headers: {
"x-next-page"?: string;
"x-prev-page"?: string;
"x-total"?: string;
"x-total-pages"?: string;
"x-per-page"?: string;
"x-page"?: string;
link?: string;
};
}
export declare function gitlabGetWithHeaders<T>(endpoint: string, searchParams?: URLSearchParams): Promise<GitLabResponse<T>>;
export declare function gitlabGet<T>(endpoint: string, searchParams?: URLSearchParams): Promise<T>;
export declare function gitlabPost<T>(endpoint: string, body?: object): Promise<T>;
export declare function gitlabPut<T>(endpoint: string, body?: object): Promise<T>;
export declare function gitlabDelete(endpoint: string): Promise<void>;
export declare function encodeProjectId(projectId: string): string;
export declare function encodeFilePath(filePath: string): string;
export declare function buildSearchParams(options: Record<string, any>): URLSearchParams;
export {};