Token导航 LogoToken导航TokenDH.com
Claude Role Library logo
AI代理stdio官方级别未说明来源级核验

Claude Role Library

MCP Server

claude-role-library

Claude Role Library是一个用于管理和应用AI角色的本地优先工具,支持跨平台使用,提供角色搜索、收藏和同步功能。

工具数

0

提示词数

0

GitHub Stars

1

资源数

0
本地优先TypeScriptClaudeClaude DesktopClaude

安装说明

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

作者 / 组织

Tony427

提供方

Tony427

最后核验

2026/5/17 20:21

运行时

Node.js

快速接入

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

命令预览

npx claude-role-library

详细介绍

克劳德角色库

Claude的专家角色选择器-在Claude Code CLI和Claude Desktop中无缝切换AI角色。

概述

Claude角色库是一个MCP(模型上下文协议)服务器,使用户能够在Claude生态系统中管理和应用专门的AI角色。与OpenAI的GPT商店在概念上类似,它提供了一种本地优先的方法来组织和使用精心策划的提示。

主要特点

  • 与跨平台支持 -通过MCP与Claude Code CLI和Claude Desktop一起使用
  • 当地第一建筑 -所有数据都存储在本地,不依赖于云
  • 两层收藏夹 -全球和项目级角色集合
  • 来源追踪 -使用同步功能跟踪提示来源
  • 基于YAML的存储 -人类可读、Git友好的配置

安装

来自npm(即将推出)

# Global installation
npm install -g claude-role-library

# Or use directly with npx
npx claude-role-library

本地开发

先决条件: 包子 v1.0或更高版本

# Clone the repository
git clone https://github.com/user/claude-role-library.git
cd claude-role-library

# Install dependencies
bun install

# Run the server
bun run start

# Run in development mode (with hot reload)
bun run dev

运行测试

# Run all tests
bun test

# Run tests in watch mode
bun test --watch

# Run specific test file
bun test src/schemas/role.test.ts

MCP配置

npm安装后(未来):

{
  "mcpServers": {
    "claude-role-library": {
      "command": "npx",
      "args": ["claude-role-library"]
    }
  }
}

对于当地发展:

{
  "mcpServers": {
    "claude-role-library": {
      "command": "bun",
      "args": ["run", "/path/to/claude-role-library/src/index.ts"]
    }
  }
}

用法

# List all available roles
/roles list

# Search for specific roles
/roles search "code review"

# Apply a role to the current session
/roles use senior-code-reviewer

# Manage favorites
/favorites list
/favorites add senior-code-reviewer

数据结构

~/.config/claude-role-library/
├── config.yaml           # Global configuration
├── sources.yaml          # External source definitions
├── favorites.yaml        # Favorited roles
└── roles/                # Role definitions
    └── *.yaml

{project}/.claude-role-library/
└── favorites.yaml        # Project-specific favorites

技术栈

组件技术
语言TypeScript
运行时Bun
协议MCP SDK
存储YAML
验证Zod

文档

路线图

阶段状态功能
第一阶段完成核心角色管理,MCP集成
第二阶段已完成GitHub源代码同步,批量导入
第3阶段进行中人工智能辅助转换、多源解析器、索引
第4阶段计划中社区共享、使用统计

贡献

欢迎捐款。请查看 体系结构文档 在提交更改之前。

许可证

麻省理工学院

目录标签

目录标签

本地优先TypeScriptClaudeAI角色管理本地部署跨平台支持YAML配置MCP协议

支持客户端

Claude DesktopClaude

接入字段

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

stdio

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

session

运行时(runtime,运行环境)

Node.js

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

local-only

来源包(packageName,安装包名)

claude-role-library

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

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

0

权限和风险

stdiosessionlocal-only

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

安装前确认

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

来源信息

继续浏览同类 MCP