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 分