navigation-equipment-manuals-mcp-server
Version:
Navigation Equipment Manuals MCP Server for create, update, delete, and search navigation equipment manuals
40 lines • 1.88 kB
JavaScript
// API Keys and Configuration Constants
// These can be overridden by command-line arguments or environment variables
export const OPENAI_API_KEY = process.env.OPENAI_API_KEY || '';
export const COHERE_API_KEY = process.env.COHERE_API_KEY || '';
export const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY || '';
export const MONGODB_URI = process.env.MONGO_URI || '';
export const MONGODB_DB_NAME = process.env.DB_NAME || '';
// S3 Configuration for HTML generation
export const S3_API_TOKEN = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7ImlkIjoiNjRkMzdhMDM1Mjk5YjFlMDQxOTFmOTJhIiwiZmlyc3ROYW1lIjoiU3lpYSIsImxhc3ROYW1lIjoiRGV2IiwiZW1haWwiOiJkZXZAc3lpYS5haSIsInJvbGUiOiJhZG1pbiIsInJvbGVJZCI6IjVmNGUyODFkZDE4MjM0MzY4NDE1ZjViZiIsImlhdCI6MTc0MDgwODg2OH0sImlhdCI6MTc0MDgwODg2OCwiZXhwIjoxNzcyMzQ0ODY4fQ.1grxEO0aO7wfkSNDzpLMHXFYuXjaA1bBguw2SJS9r2M';
export const S3_GENERATE_HTML_URL = 'https://dev-api.siya.com/v1.0/s3bucket/generate-html';
// Collection names
export const NAVIGATION_MANUALS_COLLECTION = 'navigation_manuals';
// Cohere reranking settings
export const COHERE_RERANK_LIMIT = 5;
export const COHERE_MODEL = 'rerank-v3.5';
// Search limits
export const DEFAULT_SEARCH_LIMIT = 7;
export const MAX_SEARCH_RESULTS = 10;
export const COHERE_MAX_DOCUMENTS = 50;
// Runtime configuration holder
let runtimeConfig = {};
/**
* Set runtime configuration from parsed command-line arguments
*/
export function setRuntimeConfig(config) {
runtimeConfig = { ...config };
}
/**
* Get API keys with runtime configuration override
*/
export function getOpenAIApiKey() {
return runtimeConfig.openaiApiKey || OPENAI_API_KEY;
}
export function getCohereApiKey() {
return runtimeConfig.cohereApiKey || COHERE_API_KEY;
}
export function getPerplexityApiKey() {
return runtimeConfig.perplexityApiKey || PERPLEXITY_API_KEY;
}
//# sourceMappingURL=constants.js.map