UNPKG

octocode-mcp

Version:

Model Context Protocol (MCP) server for advanced GitHub repository analysis and code discovery. Provides AI assistants with powerful tools to search, analyze, and understand codebases across GitHub.

391 lines (390 loc) 16.3 kB
import { z } from 'zod'; export declare const PRMatchScopeSchema: z.ZodOptional<z.ZodArray<z.ZodEnum<["title", "body", "comments"]>, "many">>; export declare const DateRangeSchema: z.ZodObject<{ created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { created?: string | undefined; updated?: string | undefined; }, { created?: string | undefined; updated?: string | undefined; }>; export declare const GitHubPullRequestSearchQuerySchema: z.ZodObject<{ mainResearchGoal: z.ZodString; researchGoal: z.ZodString; reasoning: z.ZodString; } & { query: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; repo: z.ZodOptional<z.ZodString>; prNumber: z.ZodOptional<z.ZodNumber>; state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>; assignee: z.ZodOptional<z.ZodString>; author: z.ZodOptional<z.ZodString>; commenter: z.ZodOptional<z.ZodString>; involves: z.ZodOptional<z.ZodString>; mentions: z.ZodOptional<z.ZodString>; 'review-requested': z.ZodOptional<z.ZodString>; 'reviewed-by': z.ZodOptional<z.ZodString>; label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; 'no-label': z.ZodOptional<z.ZodBoolean>; 'no-milestone': z.ZodOptional<z.ZodBoolean>; 'no-project': z.ZodOptional<z.ZodBoolean>; 'no-assignee': z.ZodOptional<z.ZodBoolean>; head: z.ZodOptional<z.ZodString>; base: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; closed: z.ZodOptional<z.ZodString>; 'merged-at': z.ZodOptional<z.ZodString>; comments: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; reactions: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; interactions: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; merged: z.ZodOptional<z.ZodBoolean>; draft: z.ZodOptional<z.ZodBoolean>; match: z.ZodOptional<z.ZodArray<z.ZodEnum<["title", "body", "comments"]>, "many">>; sort: z.ZodOptional<z.ZodEnum<["created", "updated", "best-match"]>>; order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; withComments: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; withCommits: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["metadata", "fullContent", "partialContent"]>>>; partialContentMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{ file: z.ZodString; additions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; deletions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }, { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { mainResearchGoal: string; researchGoal: string; reasoning: string; order: "asc" | "desc"; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }, { mainResearchGoal: string; researchGoal: string; reasoning: string; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; order?: "asc" | "desc" | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }>; export declare const GitHubPullRequestSearchBulkQuerySchema: z.ZodObject<{ queries: z.ZodArray<z.ZodObject<{ mainResearchGoal: z.ZodString; researchGoal: z.ZodString; reasoning: z.ZodString; } & { query: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; repo: z.ZodOptional<z.ZodString>; prNumber: z.ZodOptional<z.ZodNumber>; state: z.ZodOptional<z.ZodEnum<["open", "closed"]>>; assignee: z.ZodOptional<z.ZodString>; author: z.ZodOptional<z.ZodString>; commenter: z.ZodOptional<z.ZodString>; involves: z.ZodOptional<z.ZodString>; mentions: z.ZodOptional<z.ZodString>; 'review-requested': z.ZodOptional<z.ZodString>; 'reviewed-by': z.ZodOptional<z.ZodString>; label: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>; 'no-label': z.ZodOptional<z.ZodBoolean>; 'no-milestone': z.ZodOptional<z.ZodBoolean>; 'no-project': z.ZodOptional<z.ZodBoolean>; 'no-assignee': z.ZodOptional<z.ZodBoolean>; head: z.ZodOptional<z.ZodString>; base: z.ZodOptional<z.ZodString>; created: z.ZodOptional<z.ZodString>; updated: z.ZodOptional<z.ZodString>; closed: z.ZodOptional<z.ZodString>; 'merged-at': z.ZodOptional<z.ZodString>; comments: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; reactions: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; interactions: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>; merged: z.ZodOptional<z.ZodBoolean>; draft: z.ZodOptional<z.ZodBoolean>; match: z.ZodOptional<z.ZodArray<z.ZodEnum<["title", "body", "comments"]>, "many">>; sort: z.ZodOptional<z.ZodEnum<["created", "updated", "best-match"]>>; order: z.ZodDefault<z.ZodOptional<z.ZodEnum<["asc", "desc"]>>>; limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>; withComments: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; withCommits: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; type: z.ZodOptional<z.ZodDefault<z.ZodEnum<["metadata", "fullContent", "partialContent"]>>>; partialContentMetadata: z.ZodOptional<z.ZodArray<z.ZodObject<{ file: z.ZodString; additions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; deletions: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>; }, "strip", z.ZodTypeAny, { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }, { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { mainResearchGoal: string; researchGoal: string; reasoning: string; order: "asc" | "desc"; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }, { mainResearchGoal: string; researchGoal: string; reasoning: string; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; order?: "asc" | "desc" | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }>, "many">; }, "strip", z.ZodTypeAny, { queries: { mainResearchGoal: string; researchGoal: string; reasoning: string; order: "asc" | "desc"; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }[]; }, { queries: { mainResearchGoal: string; researchGoal: string; reasoning: string; query?: string | undefined; state?: "open" | "closed" | undefined; draft?: boolean | undefined; assignee?: string | undefined; comments?: string | number | undefined; type?: "metadata" | "fullContent" | "partialContent" | undefined; reactions?: string | number | undefined; closed?: string | undefined; created?: string | undefined; updated?: string | undefined; owner?: string | undefined; repo?: string | undefined; sort?: "created" | "updated" | "best-match" | undefined; head?: string | undefined; base?: string | undefined; match?: ("title" | "body" | "comments")[] | undefined; limit?: number | undefined; merged?: boolean | undefined; 'merged-at'?: string | undefined; author?: string | undefined; mentions?: string | undefined; commenter?: string | undefined; involves?: string | undefined; 'reviewed-by'?: string | undefined; 'review-requested'?: string | undefined; interactions?: string | number | undefined; label?: string | string[] | undefined; 'no-assignee'?: boolean | undefined; 'no-label'?: boolean | undefined; 'no-milestone'?: boolean | undefined; 'no-project'?: boolean | undefined; order?: "asc" | "desc" | undefined; prNumber?: number | undefined; withComments?: boolean | undefined; withCommits?: boolean | undefined; partialContentMetadata?: { file: string; additions?: number[] | undefined; deletions?: number[] | undefined; }[] | undefined; }[]; }>;