Connects MasterGo design tools to AI models so they can retrieve DSL data from MasterGo design files.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add mastergo-magic --env MG_MCP_TOKEN='<MG_MCP_TOKEN>' --env NPM_CONFIG_REGISTRY='<NPM_CONFIG_REGISTRY>' -- npx -y @mastergo/magic-mcp '--token={{config.MG_MCP_TOKEN}}' '--url={{config.API_URL}}'~/.codex/config.toml
[mcp_servers.mastergo-magic]
command = "npx"
args = ["-y", "@mastergo/magic-mcp", "--token={{config.MG_MCP_TOKEN}}", "--url={{config.API_URL}}"]
env = { MG_MCP_TOKEN = "<MG_MCP_TOKEN>", NPM_CONFIG_REGISTRY = "<NPM_CONFIG_REGISTRY>" }
# codex mcp add mastergo-magic --env MG_MCP_TOKEN='<MG_MCP_TOKEN>' --env NPM_CONFIG_REGISTRY='<NPM_CONFIG_REGISTRY>' -- npx -y @mastergo/magic-mcp '--token={{config.MG_MCP_TOKEN}}' '--url={{config.API_URL}}'~/.cursor/mcp.json
{
"mcpServers": {
"mastergo-magic": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token={{config.MG_MCP_TOKEN}}",
"--url={{config.API_URL}}"
],
"env": {
"MG_MCP_TOKEN": "<MG_MCP_TOKEN>",
"NPM_CONFIG_REGISTRY": "<NPM_CONFIG_REGISTRY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"mastergo-magic": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token={{config.MG_MCP_TOKEN}}",
"--url={{config.API_URL}}"
],
"env": {
"MG_MCP_TOKEN": "<MG_MCP_TOKEN>",
"NPM_CONFIG_REGISTRY": "<NPM_CONFIG_REGISTRY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"mastergo-magic": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token={{config.MG_MCP_TOKEN}}",
"--url={{config.API_URL}}"
],
"env": {
"MG_MCP_TOKEN": "<MG_MCP_TOKEN>",
"NPM_CONFIG_REGISTRY": "<NPM_CONFIG_REGISTRY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"mastergo-magic": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token={{config.MG_MCP_TOKEN}}",
"--url={{config.API_URL}}"
],
"env": {
"MG_MCP_TOKEN": "<MG_MCP_TOKEN>",
"NPM_CONFIG_REGISTRY": "<NPM_CONFIG_REGISTRY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"mastergo-magic": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token={{config.MG_MCP_TOKEN}}",
"--url={{config.API_URL}}"
],
"env": {
"MG_MCP_TOKEN": "<MG_MCP_TOKEN>",
"NPM_CONFIG_REGISTRY": "<NPM_CONFIG_REGISTRY>"
}
}
}
}Environment variables
MG_MCP_TOKENNPM_CONFIG_REGISTRY
Replace the placeholders with your own credentials and keep them out of version control.