Cline Personas MCP Server
@bradfair
An MCP server for managing `.clinerules` files using shared components and persona templates.
Overview
What is Cline Personas MCP Server?
Cline Personas MCP Server is an MCP server for managing .clinerules files using reusable components and persona templates. It provides component management, persona templates with mustache-style variable substitution, dependency validation, activation system, version tracking, and file-based JSON storage. It is intended for developers who want to organize and activate different persona configurations for their projects.
How to use Cline Personas MCP Server?
Clone the repository, run npm install and npm run build. Use the ComponentPersonaService class to create components (e.g., service.setComponent('greeting', 'Welcome message', 'Hello {{name}}!', 1)), define personas (e.g., service.setPersona(...)), and activate a persona with service.activatePersona('welcome'). Start the MCP server with npm start.
Key features of Cline Personas MCP Server
- Create, read, update, and delete reusable components
- Define persona templates with mustache-style variable substitution
- Validate persona dependencies to ensure only existing components are referenced
- Activate personas by writing to the
.clinerulesfile - Track versions for both components and personas
- Store components and personas as JSON files
Use cases of Cline Personas MCP Server
- Manage reusable greeting components across multiple personas
- Define and activate different welcome personas with dynamic text
- Version and iterate on persona configurations without losing history
- Organize project‑specific
.clinerulesfiles with shared component libraries - Test persona rendering and activation programmatically
FAQ from Cline Personas MCP Server
What is Cline Personas MCP Server?
It is an MCP server that provides component and persona management for .clinerules files, with features like version tracking, mustache template substitution, and dependency validation.
How do I install Cline Personas MCP Server?
Clone the repository, run npm install to install dependencies, and npm run build to compile the project.
What are components and personas?
Components are reusable text snippets with a name, description, and version. Personas are templates that use mustache‑style {{variable}} placeholders to reference components and can be activated to write into the .clinerules file.
How do I activate a persona?
Use the activatePersona(name) method on the ComponentPersonaService instance, which writes the rendered persona template into the .clinerules file.
Where is data stored?
Components and personas are stored as JSON files inside a .cline-personas/ directory, with subdirectories components/ and personas/ in the current working directory.