Dojo Sensei
STDIOExpert guidance for Dojo and Cairo development on Starknet using Model Context Protocol.
Expert guidance for Dojo and Cairo development on Starknet using Model Context Protocol.
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.
See the official Cursor docs for more information on installing and using MCP servers.
To add Sensei to your Cursor IDE:
mcp.json
:{ "mcpServers": { "sensei": { "type": "command", "command": "npx github:dojoengine/sensei-mcp", "enabled": true } } }
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.
Once installed, Cursor Agent will automatically query Sensei when appropriate. Follow these best practices for optimal results:
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").
Follow the incremental development approach:
dojo_101
dojo_model
dojo_logic
dojo_config
dojo_test
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."
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.
You can also run Sensei MCP directly:
npx github:dojoengine/sensei-mcp
Sensei provides specialized tools for different aspects of Dojo development:
When chatting with Sensei, you can ask for specific guidance by mentioning the tool name:
Can you help me understand how to create a model in Dojo?
Sensei will automatically use the appropriate tool (in this case, dojo_model
) to provide specialized guidance.
For the best results, follow this incremental development approach:
Project Setup (use dojo_101
)
sozo init
Define Models (use dojo_model
)
Implement Systems (use dojo_logic
)
Project Configuration (use dojo_config
)
Testing (use dojo_test
)
This workflow ensures you build your Dojo application in a structured, methodical way, leveraging the specialized knowledge of each tool at the appropriate stage of development.
Sensei has deep expertise in:
bin/
: Contains the executable scriptsrc/
: Source code for the MCP serverprompts/
: Text prompts for different aspects of Dojo developmentresources/
: Additional resources used by the prompts# Clone the repository git clone https://github.com/dojoengine/sensei-mcp.git cd sensei-mcp # Install dependencies npm install # Build the project npm run build # Start the server npm start