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.
132 lines (131 loc) • 4.51 kB
TypeScript
import { z } from 'zod';
export declare const GitHubCodeSearchQuerySchema: z.ZodObject<{
mainResearchGoal: z.ZodString;
researchGoal: z.ZodString;
reasoning: z.ZodString;
} & {
keywordsToSearch: z.ZodArray<z.ZodString, "many">;
owner: z.ZodOptional<z.ZodString>;
repo: z.ZodOptional<z.ZodString>;
extension: z.ZodOptional<z.ZodString>;
stars: z.ZodOptional<z.ZodString>;
filename: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
match: z.ZodOptional<z.ZodEnum<["file", "path"]>>;
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
minify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
minify: boolean;
sanitize: boolean;
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
}, {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
minify?: boolean | undefined;
sanitize?: boolean | undefined;
}>;
export declare const GitHubCodeSearchBulkQuerySchema: z.ZodObject<{
queries: z.ZodArray<z.ZodObject<{
mainResearchGoal: z.ZodString;
researchGoal: z.ZodString;
reasoning: z.ZodString;
} & {
keywordsToSearch: z.ZodArray<z.ZodString, "many">;
owner: z.ZodOptional<z.ZodString>;
repo: z.ZodOptional<z.ZodString>;
extension: z.ZodOptional<z.ZodString>;
stars: z.ZodOptional<z.ZodString>;
filename: z.ZodOptional<z.ZodString>;
path: z.ZodOptional<z.ZodString>;
match: z.ZodOptional<z.ZodEnum<["file", "path"]>>;
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
minify: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
sanitize: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, "strip", z.ZodTypeAny, {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
minify: boolean;
sanitize: boolean;
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
}, {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
minify?: boolean | undefined;
sanitize?: boolean | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
queries: {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
minify: boolean;
sanitize: boolean;
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
}[];
}, {
queries: {
mainResearchGoal: string;
researchGoal: string;
reasoning: string;
keywordsToSearch: string[];
path?: string | undefined;
owner?: string | undefined;
repo?: string | undefined;
stars?: string | undefined;
extension?: string | undefined;
filename?: string | undefined;
match?: "path" | "file" | undefined;
limit?: number | undefined;
minify?: boolean | undefined;
sanitize?: boolean | undefined;
}[];
}>;