Role-Specific Context MCP Server
A Model Context Protocol (MCP) server that defines and governs contextual boundaries based on agent roles in your system.
Overview
This MCP server enables role-based context management for AI agents, allowing you to:
- Establish clear instructions, objectives, and domain knowledge for each AI agent (Marketing Expert, Songwriter, Executive Assistant, etc.)
- Keep role-relevant memory partitioned and scoped, preventing cross-contamination between different agent roles
- Adapt tone and style dynamically (serious, witty, sarcastic) per role, with tone profiles baked into the prompt
Features
Role Management
- Create, update, and delete custom roles
- Pre-defined roles with specific expertise domains
- Role-specific system prompts and instructions
- Customizable tone profiles
Memory Management
- Role-specific memory storage
- Memory retrieval based on relevance to current query
- Time-to-live (TTL) for memories
- Memory limits per role
MCP Integration
- Exposes roles as MCP resources
- Provides tools for role management and query processing
- Offers prompts for role-based interactions
Getting Started
Prerequisites
- Node.js 18+
- OpenAI API key
Installation
Running the Server
Configuration
The server can be configured by modifying src/config.ts
. Key configuration options include:
- Default roles and their properties
- Available tone profiles
- Memory management settings
- OpenAI model selection
MCP Integration
Resources
The server exposes the following resources:
role://{roleId}
- Information about a specific rolerole://tones
- Available tone profiles
Tools
The server provides the following tools:
process-with-role
- Process a query using a specific rolecreate-role
- Create a new roleupdate-role
- Update an existing roledelete-role
- Delete a custom rolechange-role-tone
- Change the tone of a rolestore-memory
- Store a memory for a specific roleclear-role-memories
- Clear all memories for a role
Prompts
The server provides the following prompts:
role-{roleId}
- Use a specific role to process a requestcreate-custom-role
- Create a new custom role
Example Usage
Processing a Query with a Role (MCP)
Processing a Query with a Role (HTTP API)
Creating a Custom Role
License
MIT
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
- -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 -4
- -securityFlicense-qualityA comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.Last updated -71
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI agents to generate, fetch, and manage UI components through natural language interactions.Last updated -3575
CodeAlive MCPofficial
-securityAlicense-qualityA 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.Last updated -51MIT License