mcp-cline-personas
An MCP server for managing `.clinerules` files using shared components and persona templates.
Documentation
Cline Personas MCP Server
An MCP server for managing `.clinerules` files using shared components and persona templates.
Features
- Component Management: Create, read, update and delete reusable components
- Persona Templates: Define persona templates with mustache-style variable substitution
- Dependency Validation: Ensure persona templates only reference existing components
- Activation System: Activate personas by writing to `.clinerules` file
- Version Tracking: Track versions for both components and personas
- File-based Storage: Store components and personas as JSON files
Installation
1. Clone the repository
2. Install dependencies:
npm install3. Build the project:
npm run buildUsage
Managing Components
import { ComponentPersonaService } from './src/service';
const service = new ComponentPersonaService(process.cwd());
// Create a new component
service.setComponent('greeting', 'Welcome message', 'Hello {{name}}!', 1);
// Get a component
const component = service.getComponent('greeting');
// List all components
const components = service.listComponents();Managing Personas
// Create a new persona
service.setPersona(
'welcome',
'Welcome persona',
'{{greeting}}\nPlease enjoy your stay!',
1
);
// Activate a persona
service.activatePersona('welcome');
// Get active persona
const active = service.getActivePersona();File Structure
.cline-personas/
components/
[component-name].json
personas/
[persona-name].json
src/
component.ts # Component class and operations
persona.ts # Persona class and template rendering
service.ts # Main service implementation
index.ts # MCP server entry point
test/ # Unit testsAPI Documentation
ComponentPersonaService
The main service class providing all operations:
- Component Operations:
- `setComponent(name, description, text, version)`
- `getComponent(name)`
- `listComponents()`
- `deleteComponent(name)`
- Persona Operations:
- `setPersona(name, description, template, version)`
- `getPersona(name)`
- `listPersonas()`
- `deletePersona(name)`
- `activatePersona(name)`
- `getActivePersona()`
- `renderPersona(name)`
Development
Run tests:
npm testBuild the project:
npm run buildRun the MCP server:
npm startFrequently asked questions
What is mcp-cline-personas?
mcp-cline-personas is An MCP server for managing `.clinerules` files using shared components and persona templates.
How do I install mcp-cline-personas?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-cline-personas open source?
Yes — it is hosted on GitHub at https://github.com/bradfair/mcp-cline-personas and has 22 stars.
Related MCP tools
Playwright MCP server TypeScript-based implementation. Trusted by 22000+ developers. Trusted by 22000+ developers. Trusted by 22000+ developers.
Official Notion MCP Server TypeScript-based implementation. Trusted by 3400+ developers. Trusted by 3400+ developers. Trusted by 3400+ developers.
Directory for Awesome MCP Servers TypeScript-based implementation. Trusted by 1900+ developers. Trusted by 1900+ developers.
🧩 MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes.
MCP Aggregator, Orchestrator, Middleware, Gateway in one docker TypeScript-based implementation. Trusted by 1400+ developers.
MCP Server for kubernetes management commands TypeScript-based implementation. Trusted by 1100+ developers. Trusted by 1100+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP