UNPKG

@sourcebot/mcp

Version:

[![Sourcebot](https://img.shields.io/badge/Website-sourcebot.dev-blue)](https://sourcebot.dev) [![GitHub](https://img.shields.io/badge/GitHub-sourcebot--dev%2Fsourcebot-green?logo=github)](https://github.com/sourcebot-dev/sourcebot) [![Docs](https://img.s

19 lines 798 B
import { createEnv } from "@t3-oss/env-core"; import { z } from "zod"; export const numberSchema = z.coerce.number(); const SOURCEBOT_DEFAULT_HOST = "http://localhost:3000"; export const env = createEnv({ server: { SOURCEBOT_HOST: z.string().url().default(SOURCEBOT_DEFAULT_HOST), SOURCEBOT_API_KEY: z.string().optional(), // The minimum number of tokens to return DEFAULT_MINIMUM_TOKENS: numberSchema.default(10000), // The number of matches to fetch from the search API. DEFAULT_MATCHES: numberSchema.default(10000), // The number of lines to include above and below a match DEFAULT_CONTEXT_LINES: numberSchema.default(5), }, runtimeEnv: process.env, emptyStringAsUndefined: true, }); //# sourceMappingURL=env.js.map