@civic/nexus-bridge
Version:
Stdio <-> HTTP/SSE MCP bridge with Civic auth handling
32 lines • 991 B
JavaScript
/**
* installer/index.ts
*
* Module for installing MCP Nexus Bridge into MCP-enabled applications' config
*/
import { installForClaudeDesktop } from './claude-desktop.js';
import { installForClaudeCode } from './claude-code.js';
/**
* Array of available installer targets
*/
export const AVAILABLE_TARGETS = ['claude-desktop', 'claude-code'];
/**
* Map of target installers
*/
const targetInstallers = {
'claude-desktop': installForClaudeDesktop,
'claude-code': installForClaudeCode
};
/**
* Run the installer for the specified target application
* @param target The target application to install for
*/
export async function runInstaller(target) {
console.log(`Running installer for ${target}...`);
const installer = targetInstallers[target];
if (!installer) {
throw new Error(`Unknown installer target: ${target}`);
}
await installer();
console.log(`Installation for ${target} completed successfully`);
}
//# sourceMappingURL=index.js.map