UNPKG

@kazuph/mcp-github-pera1

Version:

Model Context Protocol server for GitHub code extraction using Pera1 service

27 lines (26 loc) 901 B
import { z } from 'zod'; export declare const WORKER_BASE_URL = "https://pera1.kazu-san.workers.dev/"; export declare const GithubUrlSchema: z.ZodObject<{ url: z.ZodString; dir: z.ZodOptional<z.ZodString>; ext: z.ZodOptional<z.ZodString>; mode: z.ZodOptional<z.ZodEnum<["tree"]>>; branch: z.ZodOptional<z.ZodString>; file: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { url: string; dir?: string | undefined; ext?: string | undefined; mode?: "tree" | undefined; branch?: string | undefined; file?: string | undefined; }, { url: string; dir?: string | undefined; ext?: string | undefined; mode?: "tree" | undefined; branch?: string | undefined; file?: string | undefined; }>; export type GithubWorkerRequest = z.infer<typeof GithubUrlSchema>; export declare const buildWorkerUrl: (params: GithubWorkerRequest) => string;