get_version
Retrieve the current version of the Apple Doc MCP server to verify compatibility and access Apple Developer Documentation features.
Instructions
Get the current version information of the Apple Doc MCP server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server/handlers/version.ts:18-33 (handler)Implementation of the handler for the 'get_version' tool. The buildVersionHandler returns an async function that reads package.json at module load time and returns formatted version information as a text content block.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.`, }, ], });
- src/server/tools.ts:117-126 (registration)Registration of the 'get_version' tool in the toolDefinitions array, including its description, empty input schema, and reference to the handler.{ name: 'get_version', description: 'Get the current version information of the Apple Doc MCP server', inputSchema: { type: 'object', required: [], properties: {}, }, handler: buildVersionHandler(), },
- src/server/tools.ts:120-124 (schema)Input schema for the 'get_version' tool, which requires no parameters (empty object).inputSchema: { type: 'object', required: [], properties: {}, },