@monsoft/mcp-docscribe
Version:
A Model Context Protocol implementation for generating comprehensive documentation
43 lines (42 loc) • 1.18 kB
TypeScript
import { z } from 'zod';
/**
* Environment schema definition
*/
export declare const envSchema: z.ZodObject<{
/**
* API Token for the AI service
*/
API_TOKEN: z.ZodString;
/**
* AI provider to use (default: 'anthropic')
*/
AI_PROVIDER: z.ZodDefault<z.ZodEnum<["anthropic", "openai"]>>;
/**
* Whether to run the server with SSE transport
*/
RUN_SSE: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
/**
* Port for the HTTP server (when using SSE)
*/
PORT: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
API_TOKEN: string;
AI_PROVIDER: "anthropic" | "openai";
RUN_SSE: boolean;
PORT: number;
}, {
API_TOKEN: string;
AI_PROVIDER?: "anthropic" | "openai" | undefined;
RUN_SSE?: boolean | undefined;
PORT?: number | undefined;
}>;
/**
* Environment configuration type
*/
export type Env = z.infer<typeof envSchema>;
/**
* Loads environment variables from command line arguments and env vars
* @returns Validated environment configuration
* @throws {EnvironmentValidationError} When environment validation fails
*/
export declare function loadEnv(): Env;