Skip to main content
Glama
version.ts969 B
import {readFileSync} from 'node:fs'; import {fileURLToPath} from 'node:url'; import {dirname, join} from 'node:path'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Read version from package.json const packageJsonPath = join(__dirname, '../../../package.json'); const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8')) as { version: string; name: string; description: string; author: string; repository?: {url: string}; }; export const buildVersionHandler = () => async () => ({ content: [ { type: 'text' as const, text: `Apple Doc MCP Server Version Information: 📦 Package Version: ${packageJson.version} 🏷️ Server Name: ${packageJson.name} 📝 Description: ${packageJson.description} 👤 Author: ${packageJson.author} 🔗 Repository: ${packageJson.repository?.url ?? 'N/A'} The server version now dynamically reads from package.json instead of being hardcoded.`, }, ], });

Latest Blog Posts

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/MightyDillah/apple-doc-mcp'

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