mcpField
R
roo-code-custom-mode-editor-mcp-server

roo-code-custom-mode-editor-mcp-server

ローカル
github.com/raymondlowe開発ツール079 週間前に更新

roo-code-custom-mode-editor-mcp-server について

roo-code-custom-mode-editor-mcp-serverは、`.roomodes`ファイル内のRoo Codeカスタムモードを編集するツールを提供します。ファイル全体を汎用的な書き込みで置き換えずに、モードの確認や選択した項目の更新ができます。

主な機能

  1. 01カスタムモードの一覧表示
  2. 02カスタムモードの作成
  3. 03モード項目の取得
  4. 04選択した項目の更新

活用シーン

  1. 01`.roomodes`内のモード確認
  2. 02Roo Codeカスタムモードの追加
  3. 03モードの指示やグループの変更

MCP 対応

`.roomodes`に保存されたRoo Codeカスタムモードの一覧表示、作成、確認、更新を行うツールをMCPサーバーとして公開します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"roo-code-custom-mode-editor": {
"command": "npx",
"args": [
"-y",
"https://github.com/raymondlowe/roo-code-custom-mode-editor-mcp-server"
]
}
}
}
起動コマンドnpx -y https://github.com/raymondlowe/roo-code-custom-mode-editor-mcp-server

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmroo-code-custom-mode-editor-mcp-server

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

roo-code-custom-mode-editor-mcp-server

Roo Code のカスタムモードファイルを編集できる MCP サーバーです

ファイル書き込みで .roomodes ファイルを上書きしたり、信頼性の低い差分で JSON を編集したりする必要がなくなります。

MCP サーバーは次のツールを提供します。

  • すべてのカスタムモードを一覧表示する
  • 新しいカスタムモードを作成する
  • カスタムモードのフィールド("slug"、"name"、"roleDefinition"、"customInstructions"、"groups")を取得する
  • カスタムモードの 1 つ以上のフィールドを設定して上書きする

フィールドは次のとおりです。

  • slug:短い文字列
  • name:短い文字列
  • roleDefinition:長い文字列
  • customInstructions:長い文字列
  • groups:短い文字列の配列

使用方法

このサーバーは https://github.com/raymondlowe/roo-code-custom-mode-editor-mcp-server にあり、次のコマンドで実行できます。

npx https://github.com/raymondlowe/roo-code-custom-mode-editor-mcp-server

MCP の設定

Roo Code で使用するには、MCP 設定ファイルにサーバー設定を追加します。

{
  "mcpServers": {
    "roo-code-custom-mode-editor": {
      "command": "node",
      "args": [
        "/path/to/roo-code-custom-mode-editor-mcp-server/build/index.js"
      ],
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

開発

依存関係をインストールします。

npm install

サーバーをビルドします。

npm run build

自動再ビルドを有効にして開発する場合:

npm run watch
デバッグ

MCP サーバーは stdio 経由で通信するため、デバッグが難しい場合があります。パッケージスクリプトとして利用できる MCP Inspector の使用をおすすめします。

npm run inspector

Inspector は、ブラウザーでデバッグツールにアクセスするための URL を表示します。

ツール

list_custom_modes

.roomodes ファイル内のすべてのカスタムモードを一覧表示します。

create_custom_mode

指定したフィールドで新しいカスタムモードを作成します。

パラメーター:

  • slug:string
  • name:string
  • roleDefinition:string
  • customInstructions:string
  • groups:string[]
get_custom_mode_fields

カスタムモードのフィールドを取得します。

パラメーター:

  • slug:string
put_custom_mode_fields

カスタムモードの 1 つ以上のフィールドを更新します。

パラメーター:

  • slug:string
  • fields:次のいずれかのフィールドを含むオブジェクト:
    • name:string
    • roleDefinition:string
    • customInstructions:string
    • groups:string[]

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。