Skip to main content
Glama

Cline Personas MCP Server

by bradfair

Cline Personas MCP 服务器

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

特征

  • 组件管理:创建、读取、更新和删除可重用组件
  • 角色模板:使用胡须样式变量替换定义角色模板
  • 依赖验证:确保角色模板仅引用现有组件
  • 激活系统:通过写入.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)
  • 角色操作
    • setPersona(name, description, template, version)
    • getPersona(name)
    • listPersonas()
    • deletePersona(name)
    • activatePersona(name)
    • getActivePersona()
    • renderPersona(name)

发展

运行测试:

npm test

构建项目:

npm run build

运行 MCP 服务器:

npm start
-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP 服务器通过写入.clinerules文件来管理和激活角色模板和组件,支持版本跟踪和基于文件的存储。

  1. 特征
    1. 安装
      1. 用法
        1. 管理组件
        2. 管理角色
      2. 文件结构
        1. API 文档
          1. 组件角色服务
        2. 发展

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A MCP server for managing and storing code snippets in various programming languages, allowing users to create, list, and delete snippets via a standardized interface.
            Last updated -
            3
            4
            JavaScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            An MCP server that provides access to project files and their contents, allowing users to retrieve file data from specified project directories with error handling and configuration options.
            Last updated -
            1
            4
            TypeScript
            MIT License
          • A
            security
            A
            license
            A
            quality
            A tool that dynamically generates and configures MCP servers by automatically creating necessary directories and files according to user specifications.
            Last updated -
            1
            9
            9
            JavaScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            An MCP server that assists with the orchestration of new software projects by applying standardized templates and best practices in design patterns and software architecture.
            Last updated -
            3
            Python
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/bradfair/mcp-cline-personas'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server