Chenji Affect

io.github.zhiyu-dev由 GitHub 账号 zhiyu-dev 发布v1.1.0更新于 Oct 24, 2026

Affect analysis, 3D avatar params, empathy hints and somatic emotion decode.

已验证Streamable HTTP可网页运行媒体与设计AI 与机器学习

概览

AI 生成的概览

Chenji Affect 是一个远程 MCP 服务器,把文本转换为结构化情感信号:情绪向量、虚拟形象动画参数、共情策略与身体感受解码。

可以做什么
把文本分析为八维情绪向量、情绪质感标签、因果意图分类和自然语言状态描述(最多 2000 字符,支持中文或英文)。生成 3D 虚拟形象驱动参数,包括 blendshape、AU 与曲线动画数据以及光照与材质氛围,并附带上游情感分析。为对话式智能体生成确定性的共情回应策略(方式、语气温度、节奏、关注点、回避清单)。把身体感受文本解码为结构化情绪,含效价/唤醒度与身体锚点线索。
适用场景
适合构建需要从用户文本获得稳定情感信号、虚拟形象动画参数或回应策略提示的 AI 伴侣、虚拟形象或对话式智能体。也适用于对身体感受描述做健康向的反思性解读。
运行要求
远程 streamable-HTTP 端点,无需本地安装。需要 Chenji API 密钥,通过 x-api-key 请求头发送(本地方式使用 CHENJI_API_KEY)。可通过 RapidAPI 或试用密钥获得免费 BASIC 套餐。L2 虚拟形象工具需要包含 L2 的密钥等级。需要能访问该服务的网络。
安装前请注意
需要在 x-api-key 请求头中提供 API 密钥,请妥善保管。用量按字符计费(每 200 字符为一个计费单位),虚拟形象工具需要更高等级。原始文本会发送给第三方服务,其声明不会持久保存。输出仅为健康与情感模拟,不构成医疗或诊断建议。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Chenji Affect,将其添加到工作区。
  2. 连接 x-api-key 凭据。它们会被私密存储,绝不会在公开页面上展示。
  3. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.zhiyu-dev%2Fchenji-affect-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "chenji-affect": {
      "type": "http",
      "url": "https://taichusjs.cn/mcp",
      "headers": {
        "x-api-key": "<YOUR_API_KEY>"
      }
    }
  }
}

README

Chenji Affect MCP Server

Turn raw text into structured affect signals — an 8-dimensional emotion vector, emotion texture labels, causal intent, 3D avatar driving parameters, empathy response strategies, and somatic-sensation emotion decoding — inside any MCP-capable client (Claude Desktop, Cursor, Qoder, etc.).

Powered by the Chenji Affect API (taichusjs.cn).

Tools

ToolLevelDescription
analyze_textL1Text → 8-dim affect vector + emotion texture + intent + state description
generate_avatar_paramsL2Text → blendshape/AU/curve animation package + lighting/atmosphere package + upstream L1
empathy_hintL3Text → deterministic empathy response strategy (approach, tone, pacing, focus, avoid-list), ~20ms, no LLM
somatic_decodeL4Body-sensation text → structured emotion (primary affect, valence/arousal, texture, intent) + somatic anchors

Remote mode (no install)

Clients that support streamable-http MCP can connect directly, no local package needed:

json
{
  "mcpServers": {
    "chenji-affect": {
      "type": "streamable-http",
      "url": "https://taichusjs.cn/mcp",
      "headers": { "x-api-key": "cj-your-key-here" }
    }
  }
}

Install

Requires Python 3.10+.

bash
pip install "mcp>=1.0,<2"

Get an API key:

  • Free BASIC plan (100 req/day, 3,000/month): subscribe on RapidAPI, or request a trial key at https://taichusjs.cn/trial.html.

Configure (Claude Desktop example)

json
{
  "mcpServers": {
    "chenji-affect": {
      "command": "python",
      "args": ["/absolute/path/to/server.py"],
      "env": {
        "CHENJI_API_KEY": "cj-your-key-here"
      }
    }
  }
}

Environment variables:

VariableRequiredDescription
CHENJI_API_KEYYesYour Chenji API key
CHENJI_API_BASENoDefaults to https://taichusjs.cn

Notes

  • L1 input is limited to 2000 characters (every 200 chars = 1 billing unit).
  • generate_avatar_params requires a key tier that includes L2.
  • empathy_hint and somatic_decode are billed as L1-family calls (trial tier applies).
  • Privacy: raw text is never persisted by the API; only key hashes and telemetry are retained.
  • Wellness and affect-state simulation only — not a medical or diagnostic tool.

Links

来源:README.md,提交 d024a60

工具

4

analyze_text

L1 Affect Extraction: analyze text into an 8-dimensional emotion vector, emotion texture labels, causal intent classification, and a natural-language state description. text: input up to 2000 chars. lang: optional 'zh' or 'en'.

输入参数langtext必填

generate_avatar_params

L2 Avatar Driving Pipeline: one call returns blendshape/AU/curve animation parameters, lighting & material atmosphere package, adapter payload, plus the upstream L1 affect analysis. Requires a key tier that includes L2.

输入参数text必填

empathy_hint

L3 Empathy Response Strategy: converts text into a deterministic response strategy (approach, tone temperature, pacing, focus points, avoid-list) for AI companions and conversational agents. Deterministic table lookup, no LLM, ~20ms; privacy-first. Not a medical or therapeutic tool.

输入参数text必填

somatic_decode

L4 Somatic Emotion Decode: converts body-sensation text (e.g. tight chest, clenched fists) into structured emotion: primary affect, valence/arousal, emotion texture, causal intent, plus somatic anchor cues. Grounded in the somatic decoding discipline; wellness simulation only, not a diagnostic tool.

输入参数text必填

版本历史

1
  1. v1.1.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分