version
Retrieve version details for the Harvest MCP server to verify its current software release and compatibility with Harvest API v2 integrations.
Instructions
Get version information about the Harvest MCP server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:163-173 (handler)The execution handler for the 'version' tool within the MCP CallToolRequestSchema switch statement. It retrieves version information from the HarvestClient and returns it as text content.// Version Tool case 'version': const versionInfo = harvestClient.getVersion(); return { content: [ { type: 'text', text: versionInfo, }, ], };
- src/tools.ts:94-101 (schema)The tool schema definition including name, description, and empty input schema for the 'version' tool in the exported tools array.{ name: 'version', description: 'Get version information about the Harvest MCP server.', inputSchema: { type: 'object', properties: {} } },
- src/index.ts:69-73 (registration)Registration of the 'version' tool (along with others) for tool listing via the ListToolsRequestSchema handler, which returns the tools array containing the version tool schema.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools: tools, }; });
- src/harvest-client.ts:934-945 (helper)The supporting getVersion() method in HarvestClient that formats and returns detailed version information as JSON string, called by the version tool handler.getVersion(): string { return JSON.stringify({ name: '@standardbeagle/harvest-mcp', version: '0.2.0', description: 'Model Context Protocol server for Harvest API integration', author: 'standardbeagle', license: 'MIT', repository: 'https://github.com/standardbeagle/harvest-mcp', mcpVersion: '2025-06-18', harvestApiVersion: 'v2' }, null, 2); }