Integrations
Manages environment variables for the MCP server, primarily for storing API keys like the OpenAI API key.
Used for making HTTP requests to the server's API, allowing clients to process queries with specific roles and interact with the role-based context management system.
Used for version control and initial project setup through cloning the repository.
ロール固有のコンテキストMCPサーバー
システム内のエージェント ロールに基づいてコンテキスト境界を定義および管理するモデル コンテキスト プロトコル (MCP) サーバー。
概要
この MCP サーバーは、AI エージェントのロールベースのコンテキスト管理を可能にし、次のことを可能にします。
- 各 AI エージェント (マーケティング エキスパート、ソングライター、エグゼクティブ アシスタントなど) に明確な指示、目的、ドメイン知識を確立します。
- ロールに関連するメモリを分割してスコープを設定し、異なるエージェント ロール間の相互汚染を防ぎます。
- トーンプロファイルをプロンプトに組み込み、役割ごとにトーンとスタイル(真面目、機知に富んだ、皮肉)を動的に調整します。
特徴
役割管理
- カスタムロールの作成、更新、削除
- 特定の専門分野を持つ事前定義された役割
- 役割別のシステムプロンプトと指示
- カスタマイズ可能なトーンプロファイル
メモリ管理
- 役割固有のメモリストレージ
- 現在のクエリとの関連性に基づくメモリ検索
- メモリの有効期間(TTL)
- ロールごとのメモリ制限
MCP統合
- ロールをMCPリソースとして公開する
- ロール管理とクエリ処理のためのツールを提供します
- 役割ベースのインタラクションのためのプロンプトを提供する
はじめる
前提条件
- Node.js 18歳以上
- OpenAI APIキー
インストール
サーバーの実行
構成
サーバーはsrc/config.ts
変更することで設定できます。主な設定オプションは次のとおりです。
- デフォルトロールとそのプロパティ
- 利用可能なトーンプロファイル
- メモリ管理設定
- OpenAIモデル選択
MCP統合
リソース
サーバーは次のリソースを公開します。
role://{roleId}
- 特定のロールに関する情報role://tones
- 利用可能なトーンプロファイル
ツール
サーバーは次のツールを提供します。
process-with-role
- 特定のロールを使用してクエリを処理するcreate-role
- 新しいロールを作成するupdate-role
- 既存のロールを更新するdelete-role
- カスタムロールを削除するchange-role-tone
- 役割のトーンを変更するstore-memory
- 特定のロールのメモリを保存するclear-role-memories
- ロールのすべてのメモリをクリアする
プロンプト
サーバーは次のプロンプトを提供します。
role-{roleId}
- リクエストを処理するために特定のロールを使用するcreate-custom-role
- 新しいカスタムロールを作成する
使用例
ロールによるクエリの処理 (MCP)
ロールを使用したクエリの処理 (HTTP API)
カスタムロールの作成
ライセンス
マサチューセッツ工科大学
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
AI エージェントのロールベースのコンテキスト管理を可能にするモデル コンテキスト プロトコル サーバー。これにより、ユーザーは特定の指示を確立し、パーティション化されたメモリを維持し、システム内のさまざまなエージェント ロールに合わせてトーンを調整できます。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that enables AI agents to interact with ClickUp workspaces, allowing task creation, management, and workspace organization through natural language commands.Last updated -203MIT License
- -securityFlicense-qualityA Model Context Protocol server that provides persistent task management capabilities for AI assistants, allowing them to create, update, and track tasks beyond their usual context limitations.Last updated -1TypeScript
- -securityFlicense-qualityA demonstration implementation of the Model Context Protocol server that facilitates communication between AI models and external tools while maintaining context awareness.Last updated -Python
- -securityFlicense-qualityA Model Context Protocol server that bridges AI assistants like Claude with Wordware's specialized agent capabilities, allowing dynamic loading and access to any Wordware flow through a standardized interface.Last updated -Python