Cline PersonasSAFE
An MCP server for managing `.clinerules` files using shared components and persona templates.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
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
.clinerulesfile - Version Tracking: Track versions for both components and personas
- File-based Storage: Store components and personas as JSON files
Installation
- Clone the repository
- Install dependencies:
npm install
- 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, versio
a3c95917c23fOBSERVED · 2026-10-09Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add cline-personas -- npx -y [email protected]
{
"mcpServers": {
"cline-personas": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (11)
7 read · 2 write · 2 destructive. Blast radius: 2 tools can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.
| Tool | Risk | Description |
|---|---|---|
Test | read | Description |
activatePersona | read | Activate a specific persona |
createOrUpdateComponent | write | Create or update a component |
createOrUpdatePersona | write | Create or update a persona |
deleteComponent | destructive | Delete a component |
deletePersona | destructive | Delete a persona |
getActivePersona | read | Get the currently active persona |
listComponents | read | List all available components |
listPersonas | read | List all available personas |
test-component | read | test description |
test-persona | read | test description |
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | WARN |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (1 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (2)
deleteComponent, deletePersona
@modelcontextprotocol/sdk, zod, zod-to-json-schema, @babel/plugin-transform-modules-commonjs, @babel/plugin-transform-runtime, @babel/preset-env, @types/jest, @types/node
Gates applied: no_behavioural_pass.
a3c95917c23ffull audit observations/trust-audit/mcp-server/bradfair__cline-personas.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-09 | a3c95917c23f | SAFE | B | 89 | first audit |
Questions
What is the Cline Personas MCP server?
An MCP server for managing `.clinerules` files using shared components and persona templates.
What tools does Cline Personas expose?
11 in total: 7 read-only, 2 that write, and 2 that can delete or overwrite (deleteComponent, deletePersona). Every one is listed on this page with its risk.
Is Cline Personas safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B. Separately from the audit: 2 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Cline Personas need?
No credential environment variables were found in its source, so it appears to need none.
How does Cline Personas run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as cline-personas at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (a3c95917c23f), read on 2026-10-09. The repository is watched and re-audited when it changes.