UNPKG

@civic/hub-bridge

Version:

Stdio <-> HTTP/SSE MCP bridge with Civic auth handling

34 lines 1.43 kB
// Main configuration - values from environment variables export const REMOTE_MCP_URL = process.env.MCP_REMOTE_URL || 'https://nexus.civic.com/hub/mcp'; // Authentication configuration // Civic MCP - Public app export const CLIENT_ID = process.env.CIVIC_AUTH_CLIENT_ID || '12220cf4-1a9a-4964-8eb7-7c6d7d049f34'; // If true, bypass login and use CLIENT_ID directly as the bearer token export const NO_LOGIN = process.env.NO_LOGIN === 'true'; // If true, bypass third-party service authorization captures (don't open authorization URLs) export const NO_AUTH_CAPTURE = process.env.NO_AUTH_CAPTURE === 'true'; // Callback server configuration export const CALLBACK_PORT = parseInt(process.env.CALLBACK_PORT || '0', 10); // use random port // Info the bridge presents locally to Claude Desktop export const LOCAL_SERVER_INFO = { name: 'CivicHubBridge-Local', version: '0.1.0' }; // Info the bridge presents to the remote server export const REMOTE_CLIENT_INFO = { name: process.env.CLIENT_NAME || 'CivicHubBridge-Client', version: '0.1.0' }; // Default capabilities the bridge client claims to support export const BRIDGE_CLIENT_CAPABILITIES = { // Define based on expected LLM client needs tools: { listChanged: false }, prompts: { listChanged: false } }; // Token storage configuration export const CONFIG_FILE = '~/.civic/hub-bridge-config.json'; //# sourceMappingURL=index.js.map