Skip to main content
Glama

Brave Search MCP Server

cli.ts1.01 kB
/** * CLI argument parsing for Forensics Connection MCP Server */ export interface CliOptions { port?: number; stdio: boolean; } /** * Parse command line arguments */ export function parseArgs(): CliOptions { const args = process.argv.slice(2); const options: CliOptions = { stdio: false, }; for (let i = 0; i < args.length; i++) { const arg = args[i]; switch (arg) { case '--port': if (i + 1 < args.length) { const portValue = parseInt(args[i + 1], 10); if (!isNaN(portValue)) { options.port = portValue; i++; // Skip next argument } } break; case '--stdio': options.stdio = true; break; default: if (arg.startsWith('--port=')) { const portValue = parseInt(arg.split('=')[1], 10); if (!isNaN(portValue)) { options.port = portValue; } } break; } } return options; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/YC-Agents-Hackathon/mcp-forensics'

If you have feedback or need assistance with the MCP directory API, please join our Discord server