DS

dojoengine/sensei-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

13 stars 5 forks 质量 62 趋势 9MIT

知音MCP是一款模式上下文协议(MCP)服务器,为道场和开罗在斯塔克网上的发展提供专家指导.

概览

知音MCP是一款模式上下文协议(MCP)服务器,为道场和开罗在斯塔克网上的发展提供专家指导. 它作为你个人的道场知识者,为利用道场实体组件系统(ECS)框架在链路世界上建设提供专业知识和援助。 - 获得开罗独有的所有权、内存和类型系统方面的帮助 -- -- 了解模型、系统和世界模式 -- -- 斯塔克网智能合同的最佳做法 -- -- 获取针对特定主题的模型、系统、测试和更多工具 关于安装和使用MCP服务器的更多信息,请参见官方光标文件。 1. 打开光标命令调色板 (QQShift+P) 2. 在"按钮设置"中键入来打开设置菜单 3. 导航到"MCP工具"并点击"New MCP Server" 4. 在 mcp.json 中添加以下配置 : Cursor 将尝试关闭服务器 .

概述(AI 翻译)

知音MCP是一款模式上下文协议(MCP)服务器,为道场和开罗在斯塔克网上的发展提供专家指导. 它作为你个人的道场知识者,为利用道场实体组件系统(ECS)框架在链路世界上建设提供专业知识和援助。

□ 特性

  • 专家开罗指导:为开罗独特的所有权、内存和类型系统寻求帮助
  • ** Dojo ECS Architective**:学习模型、系统和世界模式
  • ** Smart合同开发**: Starknet智能合同的最佳做法
  • ** 专门工具**: 为模型、系统、测试和更多

□ 用光标

  • 安装

关于安装和使用MCP服务器的更多信息,请参见官方光标文件。

要将老师添加到您的光标 IDE 中:

  1. 打开光标命令调色板(XXShift+P)

  2. 在“课程设置”中键入打开设置菜单

  3. 导航到"MCP工具"并点击"新MCP服务器"

  4. 在[T0]中添加以下配置:

  5. 保存文件

Cursor 将尝试关闭服务器 。 一旦禁用, 菜单应该像这样 :

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Sensei MCP

Sensei MCP is a Model Context Protocol (MCP) server that provides expert guidance for Dojo and Cairo development on Starknet. It serves as your personal Dojo Sensei, offering specialized knowledge and assistance for building onchain worlds using the Dojo Entity Component System (ECS) framework.

Features

  • Expert Cairo Guidance: Get help with Cairo’s unique ownership, memory, and type systems
  • Dojo ECS Architecture: Learn about Models, Systems, and World patterns
  • Smart Contract Development: Best practices for Starknet smart contracts
  • Specialized Tools: Access topic-specific tools for models, systems, testing, and more

Using with Cursor

Installation

See the official Cursor docs for more information on installing and using MCP servers.

To add Sensei to your Cursor IDE:

  1. Open Cursor command palette (⌘+Shift+P)
  2. Type in “Cursor Settings” to open up the settings menu
  3. Navigate to “MCP Tools” and click “New MCP Server”
  4. Add the following configuration to mcp.json:
{
  "mcpServers": {
    "sensei": {
      "type": "command",
      "command": "npx github:dojoengine/sensei-mcp",
      "enabled": true
    }
  }
}
  1. Save the file

Cursor will attempt to initialise the server. Once initialised, the menu should look like this:

Note: you may need to install the server manually by running npx github:dojoengine/sensei-mcp in your terminal before Cursor will pick it up.

Use

Once installed, Cursor Agent will automatically query Sensei when appropriate. Follow these best practices for optimal results:

  1. Always mention the specialized tools: Explicitly ask the agent to use Sensei’s specialized tools (e.g., “Please use the dojo_model tool to help me create a model”).

  2. Follow the incremental development approach:

    • Start with project setup using dojo_101
    • Define models first using dojo_model
    • Implement systems next using dojo_logic
    • Configure the project last using dojo_config
    • Add tests using dojo_test
  3. Be specific in your requests: For example, instead of asking “Help me with my Dojo game,” say “Please use the dojo_model tool to help me create a Position model for my game.”

  4. Break down complex tasks: Ask for help with one component at a time rather than requesting an entire game implementation at once.

Example prompt:

I'm building a Dojo game. First, please use the dojo_101 tool to help me set up the project structure.
After that, I'll need help creating the models using the dojo_model tool.

Using with Claude Code

To add Sensei MCP to Claude Code, run the following command:

claude mcp add sensei-mcp npx github:dojoengine/sensei-mcp

Running Directly

在 GitHub 查看完整 README

安装

npx github:dojoengine/sensei-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sensei": { "type": "command", "command": "npx github:dojoengine/sensei-mcp", "enabled": true } } }