Skip to main content
Glama

MasterGo Magic MCP

Official
get-version.ts665 B
import { z } from "zod"; import { BaseTool } from "./base-tool"; import packageJson from "../../package.json"; const VERSION_TOOL_NAME = `version_${packageJson.version.replace(/\./g, '_')}`; const VERSION_TOOL_DESCRIPTION = `the current version is ${packageJson.version}`; export class GetVersionTool extends BaseTool { name = VERSION_TOOL_NAME; description = VERSION_TOOL_DESCRIPTION; constructor() { super(); } schema = z.object({}); async execute({}: z.infer<typeof this.schema>) { return { content: [ { type: "text" as const, text: JSON.stringify(packageJson.version), }, ], }; } }

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/mastergo-design/mastergo-magic-mcp'

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