We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/apify/actors-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
version.ts•335 B
import { readJsonFile } from './generic.js';
const packageJson = readJsonFile<{ version?: string }>(import.meta.url, '../../package.json');
/**
* Gets the package version from package.json
* Returns null if version is not available
*/
export function getPackageVersion(): string | null {
return packageJson.version || null;
}