UNPKG

@yoda.digital/gitlab-mcp-server

Version:

GitLab MCP Server - A Model Context Protocol server for GitLab integration

122 lines (121 loc) 3.56 kB
import { GitLabEventsResponse, GitLabCommitsResponse, GitLabIssuesResponse, GitLabMergeRequestsResponse, GitLabWikiPagesResponse, GitLabWikiPage, GitLabWikiAttachment, GitLabMembersResponse, GitLabNotesResponse, GitLabDiscussionsResponse } from './schemas.js'; /** * Formats the events response for better readability * * @param events - The GitLab events response * @returns A formatted response object for the MCP tool */ export declare function formatEventsResponse(events: GitLabEventsResponse): { content: { type: string; text: string; }[]; }; /** * Formats the commits response for better readability * * @param commits - The GitLab commits response * @returns A formatted response object for the MCP tool */ export declare function formatCommitsResponse(commits: GitLabCommitsResponse): { content: { type: string; text: string; }[]; }; /** * Formats the issues response for better readability * * @param issues - The GitLab issues response * @returns A formatted response object for the MCP tool */ export declare function formatIssuesResponse(issues: GitLabIssuesResponse): { content: { type: string; text: string; }[]; }; /** * Formats the merge requests response for better readability * * @param mergeRequests - The GitLab merge requests response * @returns A formatted response object for the MCP tool */ export declare function formatMergeRequestsResponse(mergeRequests: GitLabMergeRequestsResponse): { content: { type: string; text: string; }[]; }; /** * Formats the wiki pages response for better readability * * @param wikiPages - The GitLab wiki pages response * @returns A formatted response object for the MCP tool */ export declare function formatWikiPagesResponse(wikiPages: GitLabWikiPagesResponse): { content: { type: string; text: string; }[]; }; /** * Formats a single wiki page for better readability * * @param wikiPage - The GitLab wiki page * @returns A formatted response object for the MCP tool */ export declare function formatWikiPageResponse(wikiPage: GitLabWikiPage): { content: { type: string; text: string; }[]; }; /** * Formats a wiki attachment response for better readability * * @param attachment - The GitLab wiki attachment * @returns A formatted response object for the MCP tool */ export declare function formatWikiAttachmentResponse(attachment: GitLabWikiAttachment): { content: { type: string; text: string; }[]; }; /** * Formats the members response for better readability * * @param members - The GitLab members response * @returns A formatted response object for the MCP tool */ export declare function formatMembersResponse(members: GitLabMembersResponse): { content: { type: string; text: string; }[]; }; /** * Formats the issue notes response for better readability * * @param notes - The GitLab notes response * @returns A formatted response object for the MCP tool */ export declare function formatNotesResponse(notes: GitLabNotesResponse): { content: { type: string; text: string; }[]; }; /** * Formats the issue discussions response for better readability * * @param discussions - The GitLab discussions response * @returns A formatted response object for the MCP tool */ export declare function formatDiscussionsResponse(discussions: GitLabDiscussionsResponse): { content: { type: string; text: string; }[]; };