MasterGo 魔法 MCP 是一个独立的 MCP(模型上下文协议)服务,它的主要作用是将 MasterGo 设计工具与 AI 模型连接起来,让 AI 模型能够直接从 MasterGo 设计文件中提取 DSL 数据。
教程参考:https://mastergo.com/file/155675508499265?page_id=158:0002
npx @mastergo/magic-mcp --token=您的令牌 [--url=API_URL] [--rule=RULE_NAME] [--debug]
--token=您的令牌(必填):用于 MasterGo API 认证的令牌。--url=API_URL(可选):API 基础 URL,默认为 http://localhost:3000。--rule=RULE_NAME(可选):添加要应用的设计规则,可以多次使用。--debug(可选):启用调试模式以获取详细错误信息。您也可以使用空格分隔格式指定参数:
npx @mastergo/magic-mcp --token 您的令牌 --url API_URL --rule RULE_NAME --debug
Cursor Mcp 使用指南参考:https://docs.cursor.com/context/model-context-protocol#using-mcp-tools-in-agent
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=" ,
"--url=https://mastergo.com"
],
"env": {}
}
}
}
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=" ,
"--url=https://mastergo.com"
],
"env": {}
}
}
}
ISC