DS

dojoengine/sensei-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

13 stars 5 forks 品質 62 トレンド 9MIT

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 を追加するには:

  1. Cursorコマンドパレット(+Shift+P)を開く

  2. 設定メニューを開く「カーソル設定」に入力

  3. 「MCPツール」に移動し、「新規MCPサーバー」をクリックします。

  4. 次の設定を[mcp.jsonに追加します。

  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
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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