version_0_1_1
Retrieve DSL data from MasterGo design files to enable AI models for direct integration and enhanced functionality via Model Context Protocol service.
Instructions
the current version is 0.1.1
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/get-version.ts:18-27 (handler)The execute method of GetVersionTool that returns the package.json version as a JSON string in MCP content format.async execute({}: z.infer<typeof this.schema>) { return { content: [ { type: "text" as const, text: JSON.stringify(packageJson.version), }, ], }; }
- src/tools/get-version.ts:16-16 (schema)Zod schema defining empty input object for the version tool.schema = z.object({});
- src/index.ts:34-34 (registration)Registers the GetVersionTool instance on the MCP server.new GetVersionTool().register(server);
- src/index.ts:9-9 (registration)Imports the GetVersionTool for registration.import { GetVersionTool } from "./tools/get-version";
- src/tools/base-tool.ts:9-16 (helper)BaseTool's register method that performs the actual tool registration on the MCP server using name, description, schema, and execute handler.register(server: McpServer) { server.tool( this.name, this.description, this.schema.shape, this.execute.bind(this) ); }