Cline Personas MCP Server

by bradfair

클라인 페르소나 MCP 서버

공유 구성 요소와 페르소나 템플릿을 사용하여 .clinerules 파일을 관리하기 위한 MCP 서버입니다.

특징

  • 구성 요소 관리 : 재사용 가능한 구성 요소를 생성, 읽기, 업데이트 및 삭제합니다.
  • 페르소나 템플릿 : 콧수염 스타일 변수 대체로 페르소나 템플릿 정의
  • 종속성 검증 : 페르소나 템플릿이 기존 구성 요소만 참조하는지 확인
  • 활성화 시스템 : .clinerules 파일에 기록하여 페르소나를 활성화합니다.
  • 버전 추적 : 구성 요소와 페르소나 모두에 대한 버전 추적
  • 파일 기반 저장소 : 구성 요소와 페르소나를 JSON 파일로 저장합니다.

설치

  1. 저장소를 복제합니다
  2. 종속성 설치:

지엑스피1

  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.

.clinerules 파일에 쓰기를 통해 페르소나 템플릿과 구성 요소를 관리하고 활성화하고 버전 추적 및 파일 기반 저장을 지원하는 MCP 서버입니다.

  1. Features
    1. Installation
      1. Usage
        1. Managing Components
        2. Managing Personas
      2. File Structure
        1. API Documentation
          1. ComponentPersonaService
        2. Development

          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

          ID: pwpxbeorz7