onyx-mcp-server
Version:
Model Context Protocol (MCP) server for seamless integration with Onyx AI knowledge bases
26 lines • 633 B
JavaScript
/**
* Load configuration from environment variables
* @returns The Onyx configuration
*/
export function loadConfig() {
const config = {
apiUrl: process.env.ONYX_API_URL || 'http://localhost:8080/api',
apiToken: process.env.ONYX_API_TOKEN || '',
};
if (!config.apiToken) {
console.error('ONYX_API_TOKEN environment variable is required');
}
return config;
}
/**
* Server configuration
*/
export const SERVER_CONFIG = {
name: 'onyx-mcp-server',
version: '1.0.0',
};
/**
* Debug mode flag
*/
export const DEBUG = process.env.DEBUG === 'true';
//# sourceMappingURL=index.js.map