We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
parseAWSNodejsRuntimeEnvVarVersion.ts•524 B
export function parseAWSNodejsRuntimeEnvVarVersion() {
const runtimeEnvVar = process.env.AWS_LAMBDA_JS_RUNTIME
if (!runtimeEnvVar || runtimeEnvVar === '') return null
try {
const runtimeRegex = /^nodejs(\d+).x$/
const match = runtimeRegex.exec(runtimeEnvVar)
if (match) {
return parseInt(match[1])
}
} catch (e) {
console.error(
`We could not parse the AWS_LAMBDA_JS_RUNTIME env var with the following value: ${runtimeEnvVar}. This was silently ignored.`,
)
}
return null
}