Role-Specific Context MCP Server
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.
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.
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
A Model Context Protocol server that enables role-based context management for AI agents, allowing users to establish specific instructions, maintain partitioned memory, and adapt tone for different agent roles in their system.