@sourcebot/mcp
Version:
18 lines (17 loc) • 1.06 kB
TypeScript
import { fileSourceResponseSchema, listRepositoriesResponseSchema, locationSchema, searchRequestSchema, searchResponseSchema, rangeSchema, fileSourceRequestSchema, symbolSchema, serviceErrorSchema } from "./schemas.js";
import { z } from "zod";
export type SearchRequest = z.infer<typeof searchRequestSchema>;
export type SearchResponse = z.infer<typeof searchResponseSchema>;
export type SearchResultRange = z.infer<typeof rangeSchema>;
export type SearchResultLocation = z.infer<typeof locationSchema>;
export type SearchResultFile = SearchResponse["files"][number];
export type SearchResultChunk = SearchResultFile["chunks"][number];
export type SearchSymbol = z.infer<typeof symbolSchema>;
export type ListRepositoriesResponse = z.infer<typeof listRepositoriesResponseSchema>;
export type FileSourceRequest = z.infer<typeof fileSourceRequestSchema>;
export type FileSourceResponse = z.infer<typeof fileSourceResponseSchema>;
export type TextContent = {
type: "text";
text: string;
};
export type ServiceError = z.infer<typeof serviceErrorSchema>;