Role-Specific Context
About
Enables AI systems to maintain distinct expert personas through role-based context management with vector search capabilities for consistent domain expertise across different specializations.
Details
- Author
- chris-june
- Repository
- Chris-June/MCP-Server
- Categories
- AI, Design, Developer Tools, Search, Infrastructure, Frontend
- Tags
- #integration
Jump to
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Role-Specific ContextCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
@highlight/mcp-server
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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
npm install
echo "OPENAI_API_KEY=your_api_key_here" > .env
```bash
process-with-role
Process a query using a specific role. Parameters: roleId (string), query (string), customInstructions (optional string)
create-role
Create a new role. Parameters: id (string), name (string), description (string), instructions (string), domains (array of strings), tone (string), systemPrompt (string)
update-role
Update an existing role. Parameters: roleId (string), updates (object containing role properties to update)
delete-role
Delete a custom role. Parameters: roleId (string)
change-role-tone
Change the tone of a role. Parameters: roleId (string), tone (string)
store-memory
Store a memory for a specific role. Parameters: roleId (string), memory (object containing memory details)
clear-role-memories
Clear all memories for a role. Parameters: roleId (string)
The server provides the following tools:
- process-with-role - Process a query using a specific role
- create-role - Create a new role
- update-role - Update an existing role
- delete-role - Delete a custom role
- change-role-tone - Change the tone of a role
- store-memory - Store a memory for a specific role
- clear-role-memories - Clear all memories for a role
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"role-specific context": {
"env": {},
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
}
}
Linux
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Macos
{
"env": [],
"args": [
"-y",
"@highlight/mcp-server"
],
"command": "npx"
}
Windows
{
"env": [],
"args": [
"/c",
"npx",
"-y",
"@highlight/mcp-server"
],
"command": "cmd"
}
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
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




