index.tsā¢1.19 kB
#!/usr/bin/env node
/**
* Bruno MCP Server Entry Point
* Main entry point for the Bruno MCP server application
*/
import { createBrunoMcpServer } from './server.js';
async function main() {
try {
// Create and start the Bruno MCP server
const server = createBrunoMcpServer();
await server.start();
// Keep the process running
process.on('SIGINT', () => {
console.error('\nBruno MCP Server shutting down gracefully...');
process.exit(0);
});
process.on('SIGTERM', () => {
console.error('\nBruno MCP Server shutting down gracefully...');
process.exit(0);
});
} catch (error) {
console.error('Failed to start Bruno MCP Server:', error);
process.exit(1);
}
}
// Start the server if this file is run directly
if (import.meta.url === `file://${process.argv[1]}`) {
main().catch((error) => {
console.error('Unhandled error:', error);
process.exit(1);
});
}
export { createBrunoMcpServer } from './server.js';
export * from './bruno/types.js';
export * from './bruno/generator.js';
export * from './bruno/collection.js';
export * from './bruno/environment.js';
export * from './bruno/request.js';