使用说明
MasterGo魔术MCP
MasterGo Magic MCP是一个独立的MCP(模型上下文协议)服务,旨在将MasterGo设计工具与AI模型连接起来。它使AI模型能够直接从MasterGo设计文件中检索DSL数据。
主要特点
- 从MasterGo设计文件中检索DSL数据
- 直接使用npx运行
- 不需要外部依赖,只需要Node.js环境
教程
- https://mastergo.com/file/155675508499265?page_id=158:0002
用法
获取MG_MCP_TOKEN
- 访问https://mastergo.com
- 输入个人设置
- 单击“安全设置”选项卡
- 查找个人访问令牌
- 单击以生成令牌
命令行选项
npx @mastergo/magic-mcp --token=YOUR_TOKEN [--url=API_URL] [--rule=RULE_NAME] [--debug]
参数:
--token=YOUR_TOKEN(必需):用于身份验证的MasterGo API令牌--url=API_URL(可选):API基本URL,默认为http://localhost:3000--rule=RULE_NAME(可选):添加要应用的设计规则,可以多次使用--debug(可选):启用调试模式以获取详细的错误信息
您还可以对参数使用空格分隔格式:
npx @mastergo/magic-mcp --token YOUR_TOKEN --url API_URL --rule RULE_NAME --debug
光标使用
Cursor Mcp使用指南参考:https://docs.cursor.com/context/model-context-protocol#using-agent中的mcp工具
{
"mcpServers": {
"mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
cline使用
{
"mcpServers": {
"@master/mastergo-magic-mcp": {
"command": "npx",
"args": [
"-y",
"@mastergo/magic-mcp",
"--token=<MG_MCP_TOKEN>",
"--url=https://mastergo.com"
],
"env": {}
}
}
}
许可证
国际协调委员会
