Role-Specific Context MCP Server
ロール固有のコンテキストMCPサーバー
システム内のエージェント ロールに基づいてコンテキスト境界を定義および管理するモデル コンテキスト プロトコル (MCP) サーバー。
概要
この MCP サーバーは、AI エージェントのロールベースのコンテキスト管理を可能にし、次のことを可能にします。
各 AI エージェント (マーケティング エキスパート、ソングライター、エグゼクティブ アシスタントなど) に明確な指示、目的、ドメイン知識を確立します。
ロールに関連するメモリを分割してスコープを設定し、異なるエージェント ロール間の相互汚染を防ぎます。
トーンプロファイルをプロンプトに組み込み、役割ごとにトーンとスタイル(真面目、機知に富んだ、皮肉)を動的に調整します。
Related MCP server: CodeAlive MCP
特徴
役割管理
カスタムロールの作成、更新、削除
特定の専門分野を持つ事前定義された役割
役割別のシステムプロンプトと指示
カスタマイズ可能なトーンプロファイル
メモリ管理
役割固有のメモリストレージ
現在のクエリとの関連性に基づくメモリ検索
メモリの有効期間(TTL)
ロールごとのメモリ制限
MCP統合
ロールをMCPリソースとして公開する
ロール管理とクエリ処理のためのツールを提供します
役割ベースのインタラクションのためのプロンプトを提供する
はじめる
前提条件
Node.js 18歳以上
OpenAI APIキー
インストール
# Clone the repository
git clone https://github.com/yourusername/role-context-mcp.git
cd role-context-mcp
# Install dependencies
npm install
# Set up environment variables
echo "OPENAI_API_KEY=your_api_key_here" > .env
# Build the project
npm run buildサーバーの実行
# Run the MCP server
npm start
# Run the HTTP server for testing
npm run start:http構成
サーバーは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)
// Example of using the process-with-role tool
const result = await client.executeToolRequest({
name: 'process-with-role',
parameters: {
roleId: 'marketing-expert',
query: 'How can I improve my social media engagement?',
customInstructions: 'Focus on B2B strategies'
}
});ロールを使用したクエリの処理 (HTTP API)
// Example of using the HTTP API
const response = await axios.post('http://localhost:3000/process', {
roleId: 'marketing-expert',
query: 'How can I improve my social media engagement?',
customInstructions: 'Focus on B2B strategies'
});
console.log(response.data.response);カスタムロールの作成
// Example of using the create-role tool
const result = await client.executeToolRequest({
name: 'create-role',
parameters: {
id: 'tech-writer',
name: 'Technical Writer',
description: 'Specializes in clear, concise technical documentation',
instructions: 'Create documentation that is accessible to both technical and non-technical audiences',
domains: ['technical-writing', 'documentation', 'tutorials'],
tone: 'technical',
systemPrompt: 'You are an experienced technical writer with expertise in creating clear, concise documentation for complex systems.'
}
});ライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides AI agents with persistent memory capabilities through Mem0, allowing them to store, retrieve, and semantically search memories.679MIT

CodeAlive MCPofficial
AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that enhances AI agents by providing deep semantic understanding of codebases, enabling more intelligent interactions through advanced code search and contextual awareness.88MIT- AlicenseNot gradedqualityDmaintenanceA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.1011MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that provides persistent memory capabilities for AI systems, enabling true continuity of consciousness across conversations through episodic, semantic, procedural, and strategic memory types.246
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Connect AI agents to Replynodes over the Model Context Protocol.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Chris-June/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server