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

mastergo-design
Quick Info
Actions
Tags
MasterGo AI Context Bridge Utility
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
npxexecution. - 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)
- Navigate to the primary MasterGo portal: https://mastergo.com
- Access individual account configuration areas.
- Select the 'Security Settings' tab interface.
- Locate the designated section for personal access tokens.
- 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 endpointhttp://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_TOKENorMASTERGO_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.

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

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

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

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

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=
Method 2: Employing Environmental Variables
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": ["-y", "@mastergo/magic-mcp"],
"env": {
"MG_MCP_TOKEN": "
cline Configuration
Option A: Direct Command Line Specification
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=
Option B: Environment Variable Mapping
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": ["-y", "@mastergo/magic-mcp"],
"env": {
"MG_MCP_TOKEN": "
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
- Execute
yarnfollowed byyarn buildto resolve dependencies and compile the code. - Ascertain the absolute file path pointing to
dist/index.js. - 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": {} },
- 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:
- Strategic Planning Frameworks
- Client Relationship Management (CRM) Systems
- Personnel Feedback Surveys
- Competitive Benchmarking
- Balanced Scorecard Methodology
- Core Competency Identification
- Outsourcing Strategy
- Organizational Transition Programs
- Logistics Network Administration
- Articulation of Core Purpose and Future Vision (Mission/Vision Statements)
- Customer Group Definition
- 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.
