logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

mg-ai-connector-service

A self-contained Model Context Protocol (MCP) utility enabling generative AI models to directly ingest structured data (DSL) from MasterGo collaborative design artifacts, streamlined for execution via Node.js runtime exclusively.

Author

mg-ai-connector-service logo

mastergo-design

No License

Quick Info

GitHub GitHub Stars 173
NPM Weekly Downloads 0
Tools 1
Last Updated 2026-02-19

Tags

mastergomcptoolsdesign mastergotools mastergomastergo design

MasterGo AI Context Bridge Utility

Consult DeepWiki

This utility, designated as MasterGo Magic MCP, functions as an isolated MCP service. Its core purpose is facilitating seamless data interchange between advanced analytical models (AI) and MasterGo design repositories. It permits direct extraction of Domain Specific Language (DSL) information embedded within MasterGo file structures, necessitating only a standard Node.js environment for operation.

Principal Capabilities

  • Extracts critical DSL specifications directly from MasterGo design documents.
  • Operationalized instantly via npx execution.
  • Completely independent of tertiary external libraries; requires only Node.js availability.

Implementation Guide

  • Access the relevant documentation via: https://mastergo.com/file/155675508499265?page_id=158:0002

Execution Procedures

Acquiring Authorization Credentials (MG_MCP_TOKEN)

  1. Navigate to the primary MasterGo portal: https://mastergo.com
  2. Access individual account configuration areas.
  3. Select the 'Security Settings' tab interface.
  4. Locate the designated section for personal access tokens.
  5. Initiate the generation process for the required access token.

Command Line Interface (CLI) Invocation

npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--debug] [--no-rule]

Argument Definitions:

  • --token=YOUR_TOKEN (Mandatory): The specific MasterGo API authentication key.
  • --url=API_URL (Optional): The endpoint URL for the API service; defaults to the local endpoint http://localhost:3000.
  • --rule=RULE_NAME (Optional): Specifications for design processing logic, repeatable for multiple rules.
  • --debug (Optional): Activates verbose logging for diagnostics.
  • --no-rule (Optional): Suppresses the application of predefined default processing guidelines.

You may also utilize a parameter format separated by spaces:

npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debug

Environmental Configuration Variables

Alternatively, configuration can be managed through environment variables:

  • MG_MCP_TOKEN or MASTERGO_API_TOKEN: The required MasterGo access credential.
  • API_BASE_URL: The designated API endpoint base address.
  • RULES: A serialized JSON array defining processing rules (e.g., '["rule1", "rule2"]')

Smithery Integration

For automated integration into Claude Desktop environments utilizing Smithery:

bash npx -y @smithery/cli install @mastergo-design/mastergo-magic-mcp --client claude

LINGMA Utilization Workflow

Install the LINGMA extension from the VSCode marketplace.

image-20250507174245589

After authenticating, activate interaction by clicking on the [MCP tools] selector within the chat interface.

image-20250507174511910

Navigate to the MCP marketplace by selecting [MCP Square] at the interface apex, locate the MasterGo collaboration component, and proceed with installation.

image-20250507174840456

Upon successful installation, return to the [MCP Servers] configuration panel to substitute the placeholder token with your validated MasterGo credential.

image-20250507175005364

Finally, set the communication modality within the chat pane to the agent operating mode.

image-20250507175107044

Cursor IDE Integration Guide

Refer to the official Cursor documentation for MCP configuration standards: https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent

Configuration can be established via explicit CLI arguments or environment parameters:

Method 1: Utilizing Command Line Directives

{ "mcpServers": { "mastergo-magic-mcp": { "command": "npx", "args": [ "-y", "@mastergo/magic-mcp", "--token=", "--url=https://mastergo.com" ], "env": {} } } }

Method 2: Employing Environmental Variables

{ "mcpServers": { "mastergo-magic-mcp": { "command": "npx", "args": ["-y", "@mastergo/magic-mcp"], "env": { "MG_MCP_TOKEN": "", "API_BASE_URL": "https://mastergo.com" } } } }

cline Configuration

Option A: Direct Command Line Specification

{ "mcpServers": { "@master/mastergo-magic-mcp": { "command": "npx", "args": [ "-y", "@mastergo/magic-mcp", "--token=", "--url=https://mastergo.com" ], "env": {} } } }

Option B: Environment Variable Mapping

{ "mcpServers": { "@master/mastergo-magic-mcp": { "command": "npx", "args": ["-y", "@mastergo/magic-mcp"], "env": { "MG_MCP_TOKEN": "", "API_BASE_URL": "https://mastergo.com" } } } }

Internal File Organization

Source Directory (src)

This structure encapsulates the primary logic for the MasterGo Magic MCP utility:

  • index.ts: The foundational script initializing the MCP server and registering all connected functions.
  • http-util.ts: Collection of helper functions dedicated to managing interactions with the MasterGo API via HTTP.
  • types.d.ts: TypeScript interface definitions relevant to the project's data structures.

Tool Implementations (src/tools)

Contains modular definitions for specific MCP functionalities:

  • base-tool.ts: Abstract blueprint for all subsequent tool modules.
  • get-dsl.ts: Module responsible for fetching the Domain Specific Language structure from MasterGo artifacts.
  • get-component-link.ts: Utility for extracting detailed component documentation from provided URLs.
  • get-meta.ts: Tool dedicated to retrieving high-level descriptive metadata.
  • get-component-workflow.ts: Provides formalized development sequences for Vue/React components, generating specification documents and workflow definitions.

Documentation Assets (src/markdown)

Supplementary Markdown resources:

  • meta.md: Detailed explanation of the metadata schema and operational parameters.
  • component-workflow.md: Guidelines detailing the structured approach to component creation processes.

Local Development Setup

  1. Execute yarn followed by yarn build to resolve dependencies and compile the code.
  2. Ascertain the absolute file path pointing to dist/index.js.
  3. Integrate a local MCP configuration setup including your authentication key:

"mastergo-mcp-local": { "command": "node", "args": [ "absolute/path/to/dist/index.js", "--token=mg_xxxxxx", "--url=https://mastergo.com", "--debug" ], "env": {} },

  1. Reload the development environment (e.g., IDE) to ensure the localized MCP service initialization takes effect.

Verification is achieved by observing the output from the locally executing service. Developers are encouraged to fork and adapt this service based on personal requirements.

We actively encourage external contributions to advance the MasterGo MCP service ecosystem.

Licensing

ISC


WIKIPEDIA CONTEXTUALIZATION

Business administration instruments encompass all frameworks, software solutions, oversight mechanisms, computational methods, and procedures leveraged by enterprises to effectively navigate evolving market dynamics, maintain competitive parity, and elevate overall organizational performance.

== General Perspective == Management tools can be categorized based on the specific organizational function they address, such as: strategic mapping, operational workflow management, archival record-keeping, human resources administration, critical judgment support, performance monitoring, and so forth. A functional stratification typically recognizes these primary domains:

  • Mechanisms for data ingress and verification applicable across all departments.
  • Systems designed for oversight and refinement of operational procedures.
  • Platforms for data aggregation and facilitating executive determination. Contemporary enterprise management instruments have experienced rapid technological metamorphosis over the past decade, complicating the selection of optimal solutions for any given corporate context. This complexity arises from constant pressures to reduce expenditure while boosting revenue, the imperative to deeply comprehend client demands, and the necessity of delivering products meeting those demands precisely as specified. Within this environment, organizational leaders must adopt a strategic perspective on tool selection, avoiding mere adoption of the newest trend. Often, managers deploy off-the-shelf tools without necessary internal adjustments, leading to systemic instability. Therefore, business management apparatus must be chosen judiciously and subsequently tailored to fit the unique requirements of the organization, reversing the common practice.

== Widely Adopted Instruments == In a 2013 analysis by Bain & Company assessing global utilization of business tools, the following ten instruments were identified as top performers, reflecting regional needs shaped by market conditions:

  1. Strategic Planning Frameworks
  2. Client Relationship Management (CRM) Systems
  3. Personnel Feedback Surveys
  4. Competitive Benchmarking
  5. Balanced Scorecard Methodology
  6. Core Competency Identification
  7. Outsourcing Strategy
  8. Organizational Transition Programs
  9. Logistics Network Administration
  10. Articulation of Core Purpose and Future Vision (Mission/Vision Statements)
  11. Customer Group Definition
  12. Comprehensive Quality Management (TQM)

== Enterprise Software Applications == Software, defined as collections of programmed instructions utilized by corporate personnel to execute varied business functions, is termed business software or an application. These digital solutions are deployed to augment productivity metrics, quantify output efficiency, and execute diverse organizational mandates with accuracy. The evolution proceeded from early Management Information Systems (MIS) to robust Enterprise Resource Planning (ERP) suites, subsequently incorporating CRM capabilities, culminating in the current landscape dominated by cloud-based corporate management platforms. While a clear link exists between Information Technology investment and organizational success, two factors are paramount for realizing value: the proficiency of the deployment process and the meticulous selection and modification of the chosen technological assets.

See Also

`