@channel.io/be-user-chat-mcp
Version:
Backend UserChat Model Context Protocol server for Channel.io
31 lines • 1.03 kB
TypeScript
export interface RequestContext {
redashUrl: string;
redashApiKey: string;
sentryAuthToken: string;
awsProfile?: string;
awsRegion?: string;
awsAccessKeyId?: string;
awsSecretAccessKey?: string;
awsSessionToken?: string;
}
export declare enum ContextSource {
ENV_VARS = "env_vars",
HTTP_HEADERS = "http_headers"
}
/**
* 환경변수에서 RequestContext를 생성합니다 (stdio transport용)
*/
export declare function createContextFromEnv(): RequestContext;
/**
* HTTP 헤더에서 RequestContext를 생성합니다 (HTTP transport용)
*/
export declare function createContextFromHeaders(headers: Record<string, string | undefined>): RequestContext;
/**
* 필수 헤더들이 모두 존재하는지 검증합니다
*/
export declare function validateRequiredHeaders(headers: Record<string, string | undefined>): void;
/**
* 환경변수가 모두 설정되어 있는지 검증합니다
*/
export declare function validateRequiredEnvVars(): void;
//# sourceMappingURL=index.d.ts.map