Skip to main content
Glama

f2c-mcp-server

index.ts746 B
/** * Get the value of a specified parameter from command line arguments * Supports --param=value format * @param {string} paramName - Parameter name (without -- prefix) * @param {string|undefined} defaultValue - Default value, returned if parameter not found * @returns {string|undefined} Parameter value or default value */ export function getArgValue(paramName: string, defaultValue?: string): string | undefined { const args = process.argv const paramPrefix = `--${paramName}=` for (const arg of args) { // Check if argument starts with specified prefix if (arg.startsWith(paramPrefix)) { return arg.substring(paramPrefix.length) } } // If parameter not found, return default value return defaultValue }

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/f2c-ai/f2c-mcp'

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