@rhofkens/mcp-quotes-server
Version:
A Model Context Protocol (MCP) server that provides quotes based on user requests
49 lines (48 loc) • 2.02 kB
TypeScript
import { z } from "zod";
declare const environmentConfigSchema: z.ZodObject<{
mcpHttpEnabled: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, boolean, string | undefined>;
mcpHttpPort: z.ZodPipeline<z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, number, string | undefined>, z.ZodNumber>;
mcpHttpHost: z.ZodDefault<z.ZodOptional<z.ZodString>>;
mcpHttpsEnabled: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodString>>, boolean, string | undefined>;
mcpHttpsCertPath: z.ZodOptional<z.ZodString>;
mcpHttpsKeyPath: z.ZodOptional<z.ZodString>;
mcpHttpAllowedHosts: z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>;
mcpHttpAllowedOrigins: z.ZodEffects<z.ZodOptional<z.ZodString>, string[], string | undefined>;
}, "strip", z.ZodTypeAny, {
mcpHttpEnabled: boolean;
mcpHttpPort: number;
mcpHttpHost: string;
mcpHttpsEnabled: boolean;
mcpHttpAllowedHosts: string[];
mcpHttpAllowedOrigins: string[];
mcpHttpsCertPath?: string | undefined;
mcpHttpsKeyPath?: string | undefined;
}, {
mcpHttpEnabled?: string | undefined;
mcpHttpPort?: string | undefined;
mcpHttpHost?: string | undefined;
mcpHttpsEnabled?: string | undefined;
mcpHttpsCertPath?: string | undefined;
mcpHttpsKeyPath?: string | undefined;
mcpHttpAllowedHosts?: string | undefined;
mcpHttpAllowedOrigins?: string | undefined;
}>;
export type EnvironmentConfig = z.infer<typeof environmentConfigSchema>;
export interface HttpServerConfig {
enabled: boolean;
port: number;
host: string;
https: {
enabled: boolean;
certPath?: string;
keyPath?: string;
};
security: {
allowedHosts: string[];
allowedOrigins: string[];
};
}
export declare function parseEnvironmentConfig(): EnvironmentConfig;
export declare function getHttpServerConfig(envConfig: EnvironmentConfig): HttpServerConfig;
export declare function validateHttpsConfig(config: HttpServerConfig): void;
export {};