Cline Personas MCP Server
Cline Personas MCP 服务器
使用共享组件和角色模板来管理.clinerules文件的 MCP 服务器。
特征
组件管理:创建、读取、更新和删除可重用组件
角色模板:使用胡须样式变量替换定义角色模板
依赖验证:确保角色模板仅引用现有组件
激活系统:通过写入
.clinerules文件来激活角色版本跟踪:跟踪组件和角色的版本
基于文件的存储:将组件和角色存储为 JSON 文件
Related MCP server: Agent Factory MCP
安装
克隆存储库
安装依赖项:
npm install构建项目:
npm run build用法
管理组件
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();管理角色
// 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();文件结构
.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 文档
组件角色服务
提供所有操作的主要服务类:
组件操作:
setComponent(name, description, text, version)getComponent(name)listComponents()deleteComponent(name)
角色操作:
setPersona(name, description, template, version)getPersona(name)listPersonas()deletePersona(name)activatePersona(name)getActivePersona()renderPersona(name)
发展
运行测试:
npm test构建项目:
npm run build运行 MCP 服务器:
npm startTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP server for Product Management
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- FlicenseCqualityCmaintenanceMCP server that enables deployment and management of MCP servers through a simple configuration-based interface.1-
- AlicenseBqualityFmaintenanceA universal MCP server that automatically discovers and registers CLI tools as AI-powered agents with persona configuration, enabling any CLI tool to be used as an MCP tool.41MIT
- AlicenseAqualityDmaintenanceAn MCP server that performs automated code reviews by analyzing git diffs against configurable review standards with custom reviewer personas.72MIT
- AlicenseNot gradedqualityAmaintenanceA self-hosted MCP server that maintains a registry of project rules, enabling chats to query which rules apply to them in one call. It manages rule lifecycle with scopes, expiry, approval batches, and immutable history.MIT