
dojoengine/sensei-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Sensei MCP はモデルコンテキストプロトコル (MCP) サーバーで、Starknet で Dojo と Cairo 開発のエキスパート ガイドを提供します.
概要
Sensei MCP はモデルコンテキストプロトコル (MCP) サーバーで、Starknet で Dojo と Cairo 開発のエキスパート ガイドを提供します。 Dojo Entity Component System (ECS) フレームワークを使用して、オンチェーンの世界で構築するための専門的な知識と支援を提供する、あなたの個人的な道場の先生として機能します。 - : カイロのユニークな所有権、メモリ、およびタイプシステム - モデル、システム、および世界パターンについて学ぶ - : Starknetスマートコントラクトのベストプラクティス - : モデル、システム、テストなどのトピック固有のツールへのアクセス MCP サーバーのインストールと使用の詳細については、公式の Cursor docs を参照してください。 1. Cursorコマンドパレット(+Shift+P)2を開きます。設定メニュー3を開くには、「Cursor Settings」を入力します。 「MCPツール」に移動し、「新規MCPサーバー」4をクリックします。 mcp.json に次の設定を追加します。 Cursor はサーバーの初期化を試みます.
概要(AI 翻訳)
Sensei MCP はモデルコンテキストプロトコル (MCP) サーバーで、Starknet で Dojo と Cairo 開発のエキスパート ガイドを提供します。 Dojo Entity Component System (ECS) フレームワークを使用して、オンチェーンの世界で構築するための専門的な知識と支援を提供する、あなたの個人的な道場の先生として機能します。
##特徴
- カイロガイド:カイロのユニークな所有権、メモリ、およびタイプシステムに役立ちます
- 道場ECSアーキテクチャ:モデル、システム、世界パターンについて学ぶ -スマートコントラクト開発: Starknetスマートコントラクトのベストプラクティス
- 特別な用具: モデル、システム、テストなどのトピック固有のツールへのアクセス
Cursor の使用
インストール
MCP サーバーのインストールおよび使用に関する詳細は、公式の Cursor docs を参照してください。
Cursor IDE に Sensei を追加するには:
-
Cursorコマンドパレット(+Shift+P)を開く
-
設定メニューを開く「カーソル設定」に入力
-
「MCPツール」に移動し、「新規MCPサーバー」をクリックします。
-
次の設定を[
mcp.jsonに追加します。 -
ファイルを保存する
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:
- Open Cursor command palette (⌘+Shift+P)
- Type in “Cursor Settings” to open up the settings menu
- Navigate to “MCP Tools” and click “New MCP Server”
- Add the following configuration to
mcp.json:
{
"mcpServers": {
"sensei": {
"type": "command",
"command": "npx github:dojoengine/sensei-mcp",
"enabled": true
}
}
}
- 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-mcpin 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:
-
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:
- 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
- Start with project setup using
-
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.
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
インストール
npx github:dojoengine/sensei-mcp設定
{
"mcpServers": {
"sensei": {
"type": "command",
"command": "npx github:dojoengine/sensei-mcp",
"enabled": true
}
}
}