@cgaspard/webappmcp
Version:
WebApp MCP - Model Context Protocol integration for web applications with server-side debugging tools
32 lines • 1 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const yargs_1 = __importDefault(require("yargs"));
const helpers_1 = require("yargs/helpers");
const index_js_1 = require("./index.js");
const argv = (0, yargs_1.default)((0, helpers_1.hideBin)(process.argv))
.option('ws-port', {
alias: 'w',
type: 'number',
description: 'WebSocket server port',
default: 3101,
})
.option('auth-token', {
alias: 't',
type: 'string',
description: 'Authentication token for client connections',
})
.help()
.parseSync();
async function main() {
const server = new index_js_1.WebAppMCPServer({
wsPort: argv['ws-port'],
authToken: argv['auth-token'] || process.env.MCP_AUTH_TOKEN,
});
await server.start();
}
main().catch(console.error);
//# sourceMappingURL=cli.js.map