Token导航 LogoToken导航TokenDH.com
Cline Personas MCP Server logo
开发工具未说明官方级别未说明来源级核验

Cline Personas MCP Server

MCP Server

An MCP server for managing `.clinerules` files using shared components and persona templates.

工具数

0

提示词数

0

GitHub Stars

23

资源数

0
版本控制TypeScriptClineCline

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

bradfair

提供方

bradfair

最后核验

2026/5/18 02:17

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Cline个人MCP服务器

用于管理的MCP服务器 .clinerules 使用共享组件和角色模板的文件。

特性

  • 组件管理:创建、读取、更新和删除可重用组件
  • 人物角色模板:使用胡子样式变量替换定义角色模板
  • 依赖性验证:确保角色模板仅引用现有组件
  • 激活系统:通过写信激活人物角色 .clinerules 文件
  • 版本跟踪:跟踪组件和角色的版本
  • 基于文件的存储:将组件和角色存储为JSON文件

安装

  1. 克隆存储库
  2. 安装依赖项:
npm install
  1. 构建项目:
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 tests

API文档

组件个性化服务

提供所有操作的主要服务类:

  • 组件操作:

- setComponent(name, description, text, version) - getComponent(name) - listComponents() - deleteComponent(name)

  • Persona操作:

- setPersona(name, description, template, version) - getPersona(name) - listPersonas() - deletePersona(name) - activatePersona(name) - getActivePersona() - renderPersona(name)

发展

运行测试:

npm test

构建项目:

npm run build

运行MCP服务器:

npm start

目录标签

目录标签

版本控制TypeScriptClinedeveloper-toolsmcp-cline-personasmcp-serverpersona-management角色管理本地部署模板引擎文件存储

支持客户端

Cline

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

none

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明nonelocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP