Token导航 LogoToken导航TokenDH.com
Open Personality MCP logo
AI代理未说明官方级别未说明来源级核验

Open Personality MCP

MCP Server

Open Personality 是一款基于12个维度的本地人格分析服务,能够生成OpenClaw兼容的SOUL.md和IDENTITY.md文件,适用于AI代理平台和开发者。

工具数

6

提示词数

0

GitHub Stars

1

资源数

0
TypeScriptClaude本地服务Claude DesktopClaudeCursorWindsurf

安装说明

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

作者 / 组织

koyaaarr

提供方

koyaaarr

最后核验

2026/5/17 20:21

快速接入

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

详细介绍

开放的个性

创建个性档案,并将其输出为与OpenClaw兼容的SOUL.md/IIDENTITY.md。

基于33个学术人格框架的12方面分析。

不需要API密钥。完全本地化。MIT许可证。

建筑——谁做什么?

AI Agent (Claude, Cursor, Gemini, etc.)   MCP Server (@openpersonality)
┌──────────────────────────────────┐     ┌─────────────────────────────┐
│ - Analyzes conversation          │     │ - Stores profiles            │
│ - Estimates facet values (a/b)   │ ──→ │ - Merges confidence scores   │
│ - Determines confidence (0-1)    │     │ - Detects drift              │
│                                  │ ←── │ - Generates SOUL.md          │
└──────────────────────────────────┘     └─────────────────────────────┘
MCP服务器会 调用任何外部API或LLM。 Facet估计是连接的AI代理的责任。

特性

  • 12面人格分析 --基于33个学术框架的科学人格结构
  • 渐进式配置文件 --配置文件通过对话自动增长(代理检测信号并自动更新)
  • 兼容OpenClaw --生成OpenClaw格式的SOUL.md/IIDENTITY.md
  • MCP服务器 --通过stdio传输与所有主要的AI代理平台协同工作
  • 信任合并 --贝叶斯风格的置信度跟踪与漂移检测
  • 双语 --英语和日语支持

包裹

包装描述
@openpersonality/core核心逻辑:方面、模板、置信度合并、验证、数据
@openpersonality/mcp-serverMCP服务器(stdio):6个工具+3个资源+2个提示

安装

克劳德桌面

编辑 claude_desktop_config.json:

操作系统路径
macOS~/Library/Application Support/Claude/claude_desktop_config.json
窗户%APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "openpersonality": {
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}

编辑后重新启动Claude Desktop。

克劳德代码(CLI)

claude mcp add openpersonality -- npx -y @openpersonality/mcp-server

或添加到 .mcp.json 在团队共享的项目根目录中:

{
  "mcpServers": {
    "openpersonality": {
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}

光标

编辑 ~/.cursor/mcp.json (全球)或 /.cursor/mcp.json (项目):

{
  "mcpServers": {
    "openpersonality": {
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}

帆板运动

编辑 ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "openpersonality": {
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}

VS代码(GitHub副本)

创建 .vscode/mcp.json 在您的项目中:

{
  "servers": {
    "openpersonality": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}
注:VS代码使用 "servers" (不是 "mcpServers")并且需要a "type" 现场。

Gemini CLI

编辑 ~/.gemini/settings.json:

{
  "mcpServers": {
    "openpersonality": {
      "command": "npx",
      "args": ["-y", "@openpersonality/mcp-server"]
    }
  }
}

或者使用CLI:

gemini mcp add openpersonality -- npx -y @openpersonality/mcp-server

OpenAI代理SDK(Python)

import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerStdio

async def main():
    async with MCPServerStdio(
        name="Open Personality",
        params={
            "command": "npx",
            "args": ["-y", "@openpersonality/mcp-server"],
        },
    ) as server:
        agent = Agent(
            name="Personality Assistant",
            instructions="You help users create and manage personality profiles.",
            mcp_servers=[server],
        )
        result = await Runner.run(agent, "Create a personality profile for me.")
        print(result.final_output)

asyncio.run(main())

快速入门——渐进式分析

第一步:种子(第一次互动)

create_profile(name: "Alice", external_id: "discord:123", language: "ja")
language 在创建时设置,并在所有模板生成时保持不变(SOUL.md/IDENTITY.md)。

第二步:成长(几次谈话后)

update_profile(external_id: "discord:123", facets: {
  "facet_8": { "value": "b", "confidence": 0.3 },   // Introvert signal
  "facet_6": { "value": "b", "confidence": 0.4 }    // Logical signal
})

步骤3:精炼(用户自我报告或强烈信号)

update_profile(external_id: "discord:123", facets: {
  "facet_12": { "value": "a", "confidence": 1.0 }   // User confirmed: Planned
})

笔记:

  • soul_md / identity_md 如果省略,则从方面+人口统计数据自动生成(建议用于大多数用例)。仅为自定义模板提供它们。
  • 置信度通过贝叶斯合并积累。随着时间的推移,重复的低置信度信号会积累到高置信度。

12个面

关键字类别A(值: "a")B(值: "b")
facet_1沟通自信和谐
facet_2沟通直接间接
facet_3沟通领导者追随者
facet_4价值观以工作为中心生活平衡
facet_5价值观风险承担风险规避
facet_6思考同情逻辑
facet_7思考抽象具体
facet_8性格外向内向
facet_9性格情绪冷静
facet_10价值观开放传统
facet_11价值观团队独奏
facet_12思考有计划灵活

置信水平:

范围含义显示
0.0未知--
0.01–0.49暂定~Value
0.50–0.99估计数Value
1.0用户确认Value ✓

人口统计(可选)

人口统计数据赋予你的个人资料一个角色身份。所有字段都是可选的。

OpenClaw标准 --映射到IDENTITY.md标头字段:

字段目的示例
creature字符类型"Fox", "Software Engineer"
emoji头像简写"🦊"
vibe总体印象"calm & logical"
name 是ProfileData中必需的顶级参数。为了模板的方便,它也存在于人口统计中,但ProfileData.name是规范的来源。 avatar (OpenClaw标准)计划用于第二阶段。

OP扩展 --Open Personality的扩展字段,用于更丰富的角色创建:

字段目的示例
first_person代词(对日语很重要)"僕", "I"
catchphrase签名短语"なるほど"
speaking_tone沟通方式"落ち着いて論理的"
greeting开场白"Hey there!"
gender影响代词/语气"male", "non-binary"
age背景情况"30s"
occupation专业知识/角色"Software Engineer"
backstory人物背景(1-2句)"Former teacher turned freelancer"

作为OpenClaw技能使用

Open Personality是一种用于自主人格分析的OpenClaw技能。代理在对话过程中检测个性信号,并自动更新个人资料。

设置

  1. 安装MCP服务器(请参阅上面的安装)
  2. 创建一个 SKILL.md 在您的OpenClaw代理的技能目录中:
---
user-invocable: true
disable-model-invocation: false
---

# Open Personality Skill

You have access to the Open Personality MCP tools for managing personality profiles.

## Session Start

At the beginning of each session, load the user's profile:
- Call `get_or_create_profile` with the user's external_id
- Include the returned SOUL.md in your conversation context

## Autonomous Profile Updates

During conversation, watch for personality signals:
- Communication style (assertive vs harmonious, direct vs indirect)
- Values (work-focused vs life-balance, risk-taking vs risk-avoidance)
- Thinking patterns (empathetic vs logical, abstract vs concrete)
- Personality traits (extravert vs introvert, emotional vs calm)

When you detect a signal:
1. Call `update_profile` with the facet value and low confidence (0.2-0.3)
2. The confidence merge algorithm handles accumulation over time
3. If a drift warning is returned, confirm with the user at a natural point

## Explicit Requests

- "Create my profile" → Call `create_profile` with inferred facets
- "Show my personality" → Call `get_profile` and display the SOUL.md
- "Update my profile" → Call `update_profile` with user-specified values (confidence: 1.0)
  1. 添加a references/facet-guide.md 其中12个方面供代理人参考:
# Facet Guide

| # | Facet | A | B |
|---|---|---|---|
| 1 | Communication | Assertive | Harmonious |
| 2 | Expression | Direct | Indirect |
| 3 | Role | Leader | Follower |
| 4 | Work-Life | Work-Focused | Life-Balance |
| 5 | Risk | Risk-Taking | Risk-Avoidance |
| 6 | Judgment | Empathetic | Logical |
| 7 | Thinking | Abstract | Concrete |
| 8 | Energy | Extravert | Introvert |
| 9 | Emotion | Emotional | Calm |
| 10 | Openness | Open | Traditional |
| 11 | Collaboration | Team | Solo |
| 12 | Planning | Planned | Flexible |

渐进式配置文件的工作原理

Session 1: User says "I prefer working alone"
  → Agent detects Solo signal → update_profile(facet_11: "b", confidence: 0.3)

Session 3: User says "I like to plan everything in advance"
  → Agent detects Planned signal → update_profile(facet_12: "a", confidence: 0.25)

Session 5: User mentions preferring solo work again
  → Confidence merge: 0.3 + 0.25 → 0.475 (approaching confirmed)

Over time: Profile grows without user ever explicitly asking for it.

MCP工具

工具说明
create_profile创建新配置文件(仅限 name 是必需的)
update_profile使用置信度合并和漂移检测更新方面/人口统计数据
get_or_create_profile通过 external_id,如果未找到,则创建(适用于机器人)
get_profile获取配置文件数据+SOUL.md+IDENTITY.md
list_profiles列出所有本地配置文件及其完整性信息
delete_profile删除个人资料
注意 soul_md / identity_md: 如果省略,这些是从方面+人口统计数据自动生成的(建议用于大多数用例)。仅当您想使用AI代理本身生成的自定义模板时,才提供它们。

MCP资源

URI描述
op://profiles/{id}配置文件结构化JSON
op://profiles/{id}/soulSOUL.md文本
op://profiles/{id}/identity标识符.md文本

MCP提示

提示描述
onboarding引导AI创建用户的第一个个人资料
personalized_advice生成适合用户个性的建议

输出示例

SOUL.md

# Soul

## Core Truths
- Lead with conviction, deliver with care
- Plan first, explore within structure
- Think with data, connect with people

## Boundaries
- Words are chosen carefully, even in disagreement
- Decisions require data — intuition alone is not enough
- Risks are calculated, never reckless

## Vibe
Warm and polite tone. Uses "watashi" as first person. Firm opinions
delivered in soft packaging. Analytical mind with genuine enjoyment
of human connection.

## Facet Profile
| Facet | Value |
|---|---|
| Assertive ↔ Harmonious | Assertive |
| Direct ↔ Indirect | ~Indirect |
| Leader ↔ Follower | Leader |
| Work-Focused ↔ Life-Balance | Life-Balance |
| ... | ... |

数据存储

所有数据都存储在本地:

~/.openpersonality/
├── config.json
└── profiles/{id}/
    ├── profile.json    # Structured data (source of truth)
    ├── SOUL.md         # Generated personality document
    └── IDENTITY.md     # Generated identity document

没有数据发送到外部服务器。目录权限设置为 0700 (仅限所有者)。

平台兼容性

平台交通自主更新
克劳德桌面/Claude代码MCP(stdio)自主工具调用
光标/风冲浪/临床MCP(stdio)代理模式
VS代码/GitHub副本MCP(stdio)代理模式
Gemini CLIMCP(stdio)自动工具调用
OpenAI代理SDKMCP(stdio)代理循环
OpenClawMCP+技能技能自动调用
ChatGPTMCP(流式HTTP)*计划的*

发展

pnpm install    # Install dependencies
pnpm build      # Build all packages
pnpm typecheck  # Type check
pnpm test       # Run tests
pnpm clean      # Clean build artifacts

隐私

  • 所有配置文件数据都保留在您的计算机上(~/.openpersonality/)
  • MCP服务器使 外部API调用
  • 不需要API密钥-方面估计由人工智能代理自己的LLM完成
  • 人口统计数据可能包含个人信息——个人资料仅以所有者权限存储

许可证

麻省理工学院

目录标签

目录标签

TypeScriptClaude本地服务人格分析本地部署AI代理OpenClaw兼容12维人格

支持客户端

Claude DesktopClaudeCursorWindsurf

接入字段

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

未说明

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

session

工具数量(toolCount,工具数)

6

资源数量(resourceCount,资源数)

0

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

0

权限和风险

未说明session部署方式未说明

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

安装前确认

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

仍需确认:installCommand

来源信息

继续浏览同类 MCP