Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Cline Personas

FreeNot checked

Implements a persona management system for dynamic AI behavior adjustment using reusable components and templates defined in .clinerules files.

GitHubEmbed

About

Implements a persona management system for dynamic AI behavior adjustment using reusable components and templates defined in .clinerules files.

README

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 install
  1. Build the project:
npm run build

Usage

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 tests

API 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 test

Build the project:

npm run build

Run the MCP server:

npm start

from github.com/bradfair/mcp-cline-personas

Installing Cline Personas

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/bradfair/mcp-cline-personas

FAQ

Is Cline Personas MCP free?

Yes, Cline Personas MCP is free — one-click install via Unyly at no cost.

Does Cline Personas need an API key?

No, Cline Personas runs without API keys or environment variables.

Is Cline Personas hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Cline Personas in Claude Desktop, Claude Code or Cursor?

Open Cline Personas on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Cline Personas with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs