Skip to main content
Glama

Xero MCP Server

Official
MIT License
293
128
  • Apple
  • Linux
get-package-version.ts646 B
import { readFileSync } from 'fs'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; /** * Gets the package version from package.json * @returns The package version string */ export function getPackageVersion(): string { const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const packagePath = join(__dirname, '../../package.json'); try { const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8')); return packageJson.version; } catch (error) { console.warn('Failed to read package version:', error); return '0.0.0'; // Fallback version } }

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/XeroAPI/xero-mcp-server'

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