SwitchBot MCP Server

by genm
// Read package.json version at runtime instead of import import { readFileSync } from 'fs' import { join } from 'path' import { fileURLToPath } from 'url' const __dirname = fileURLToPath(new URL('.', import.meta.url)) const packageJson = JSON.parse( readFileSync(join(__dirname, '..', '..', 'package.json'), 'utf8') ) export const version = packageJson.version as string