import { readFileSync } from 'node:fs';
const packageJsonUrl = new URL('../package.json', import.meta.url);
const packageJson = JSON.parse(readFileSync(packageJsonUrl, 'utf8'));
const version = typeof packageJson.version === 'string' ? packageJson.version : undefined;
if (!version) {
    throw new Error('Package version is missing from package.json');
}
export const DOCS_MCP_VERSION = version;
//# sourceMappingURL=version.js.map