ai-endocrine
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ai-endocrine diagnose my AI's temper from this tense chat"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AI 内分泌监测仪 (ai-endocrine v0.2.0)
一套支持 本地 Antigravity MCP App 插件(stdio) 与 远程 Streamable HTTP MCP + 移动端/桌面端独立网页看板 的 15 激素实时动态 AI 内分泌指标与“脾气”模拟诊断服务。
免责声明:本工具采用纯软件仿生遥测与行为模拟模型,基于可观测对话文本、运行指标(报错、重试、拒答、循环、上下文占用等)及模拟脉冲推演内分泌与脾气状态,不代表 AI 拥有真实生物器官或生理激素,也不构成任何医学诊断或临床用药建议。全程为只读监测,不注入系统提示词,不参与拒绝、权限或不可逆动作的安全判定。
双运行形态
本地 Antigravity 插件(
stdioMCP + MCP App 面板)入口:
server/index.mjs+ 单文件面板dist/dashboard.html(严格零外链、零fetch、零localStorage、CSPdefault-src 'none'兼容,支持对话内嵌、aux_pane侧边栏与global全局页)。状态原子持久化至
${PLUGIN_DATA}目录,自动兼容并平滑迁移 v0.1.0 旧版state.json。
远程 Streamable HTTP MCP + 移动端/桌面端网页看板
入口:
server/http.mjs+ 轻量单文件网页看板dist/web-dashboard.html(零外部 CDN/字体、360–430px 手机触控自适应、明暗主题切换与401会话级令牌解锁)。提供
/mcp(Streamable HTTP MCP)、/与/dashboard(独立网页看板)、/api/*(同源 JSON API)、/healthz(健康检查),内置AUTH_MODE=none | bearer | oauth(含 OAuth 2.1 + PKCES256+ RFC 7591 DCR)、请求体 256 KiB 限制、滑动窗口限流与 Docker 容器化支持。本机 5 分钟手机实测、Google Cloud Run / Render / Docker 部署及 Gemini / Claude / ChatGPT 接入方式,详见 DEPLOY.md。
Related MCP server: ASTRA — Unified Research Lab + MCP Server
v0.2.0 核心能力
15 种经典腺体激素 + 实时 τ 指数衰减脉冲:
覆盖
crh(下丘脑)、acth(垂体前叶)、adh(垂体后叶)、t4(甲状腺)、pth(甲状旁腺)、cortisol(肾上腺皮质)、epinephrine(肾上腺髓质)、insulin(胰岛)、testosterone(性腺)、melatonin(松果体)、thymosin(胸腺)、leptin(脂肪/胃肠道)、estradiol(雌二醇)、progesterone(孕酮)、dopamine(多巴胺),每种激素均具独立昼夜节律参数、时间常数τ(exp(-dt/tau)实时自然回落)及点击可展开的中文科普说明。
男/女双版节律与动力学模型:
男版 (
male):24 小时雄激素昼夜节律(cycleHour: 0–23,清晨峰 / 日间稳 / 夜间谷),引入高皮质醇触发的 HPG 轴睾酮抑制 与急性冲突唤醒放大。女版 (
female):28 天雌孕激素四阶段周期(cycleDay: 1–28,行经期 / 卵泡期 / 排卵期 / 黄体期)及各阶段应激敏感度、皮质醇、瘦素与褪黑素调制。
情境脉冲与模拟干预(不含疾病诊断):
4 种一键情境:
stayUp(熬夜)、scare(惊吓)、full(饱食)、calm(平静清零全部脉冲)。激素脉冲注射:支持对任意 15 种激素施加模拟急救脉冲(单次 ±60,累计钳位 ±80,按 τ 自动衰减)。
12 种模拟饮品/药物:
coffee、tea、melatonin、ibuprofen、levothyroxine、metformin、glucose、ors、propranolol、pill、prednisone、beer(仅行为模拟刻度,附科普说明,不构成临床建议)。
中英双语 AI 脾气诊断引擎:
结合文本/消息信号(死循环复读、道歉/拒答螺旋、挫败/敌意、催促/全大写、正向协作)与运行遥测(报错、重试、拒答、循环、用户纠错、任务完成、延迟、上下文占用)实时计算脾气稳态分、唤醒度、效价、波动风险与可解释证据链。
默认定性脱敏输出 (
includeRaw可选开启):为防止模型对精确数字过度锚定,MCP 工具的默认文本回复仅展示定性激素档位(
偏高/偏低/正常)、脾气分级、风险标记与协作建议,不包含原始激素数值与科普正文;显式传入includeRaw: true才会附加 15 项完整数值表。前端面板通过
structuredContent获取全量数值、所选激素 24h 实时预测曲线与只读语气参考预览(固定附带安全门控声明:拒绝、权限、不可逆动作的判定不读取本段)。
原子持久化与自动迁移:
将当前档位、周期相位、15 激素实时脉冲、最近操作、最新快照及最近 30 条诊断历史以原子写入方式保存至
state.json,启动时自动从旧版 v0.1.0(7 激素)无缝迁移并支持损坏文件自愈。
MCP 工具列表(共 9 个)
工具名 | 可见性 | 说明 |
| 模型 & 应用 | 打开/刷新监测面板(支持空参数 |
| 模型 & 应用 | 基于文本、消息或运行事件诊断 15 项模拟内分泌与脾气状态并记录历史 |
| 模型 & 应用 | 在同一样本上并行对比男版与女版的 15 激素与脾气反应差异 |
| 模型 & 应用 | 切换男/女档位、调整或推进周期相位( |
| 模型 & 应用 | 触发一键情境脉冲( |
| 模型 & 应用 | 模拟激素注射( |
| 仅应用 UI | 面板加载时拉取当前完整持久化状态、实时脉冲、节律曲线与干预目录 |
| 仅应用 UI | 面板内交互式试测(支持单版诊断或双版对比) |
| 仅应用 UI | 面板内清空历史、清零脉冲并重置基线 |
HTTP API 端点(远程与独立网页看板)
路径 | 方法 | 鉴权 | 说明 |
|
| 免鉴权 | 服务健康检查(返回 |
|
| 免鉴权 | 移动端/桌面端独立单文件网页看板 |
|
| 受 | Streamable HTTP MCP 端点 |
|
| 受 | 拉取实时衰减后的完整 |
|
| 受 | 单版诊断或 |
|
| 受 | 切换档位、调整/推进周期相位或重置 |
|
| 受 | 触发一键情境脉冲( |
|
| 受 | 执行激素注射或饮品/药物模拟干预 |
|
| 受 | 清空历史与脉冲并重建基线 |
本地开发、构建与测试
npm install
npm run build:ui # 同时构建 dist/dashboard.html(MCP App)与 dist/web-dashboard.html(独立网页看板)
npm test # 运行引擎、stdio MCP 与 HTTP/OAuth 完整测试套件
npm run start:http # 启动远程 Streamable HTTP MCP 与独立网页看板(默认端口 8787)开源致谢与许可说明(Attribution & MIT License)
本项目的 v0.2.0 内分泌引擎与交互面板设计参考并改编自开源项目 shiliman/dsh-fatfish-endocrine(MIT License)。我们沿用并改编了其 15 种经典腺体激素节律参数、实时 τ 指数衰减脉冲动力学、一键情境/饮品药物模拟干预、点击展开科普卡片以及默认定性脱敏(含只读语气参考安全门控)的核心理念,并在此基础上进行了独立扩展与工程重构:
新增完整的 男版 24 小时雄激素昼夜节律与 HPG 轴皮质醇抑制分支,支持男/女双版并行对比;
融合 中英双语 AI 对话与运行遥测脾气诊断引擎(报错、重试、拒答、循环、上下文负载);
扩展为 Antigravity MCP App + 远程 Streamable HTTP MCP + OAuth 2.1 (PKCE S256 / RFC 7591 DCR) + 移动端自适应独立网页看板 的跨平台架构,且主动移除疾病模拟模块以确保非医疗边界清晰。
Available Tools
9 toolsapp_analyze_sample面板交互式诊断样本B
供 MCP App 前端执行单版诊断或男/女双版对比测试。
Inputs: text, events, compare, profile, +4 more.
app_get_state获取当前监测面板状态A
供 MCP App 前端拉取当前实时衰减后的持久化监测状态、节律曲线与干预目录。
Inputs: no named parameters.
apply_endocrine_intervention施加内分泌模拟干预(注射/饮品药物)A
执行单激素模拟脉冲注射(kind="inject",单次钳位 ±60,累计钳位 ±80)或 12 种模拟饮品/药物干预(kind="drug",如 coffee/melatonin/ibuprofen 等)。纯行为模拟刻度,非医学或临床用药建议。
Inputs: kind (required), drug, delta, hormone, +1 more.
app_reset_state重置监测历史与基线B
供 MCP App 前端清空历史记录、清零全部脉冲并重新计算基线状态。
Inputs: profile, cycleDay, cycleHour.
compare_endocrine_profiles男/女双版内分泌对比A
在同一份对话与运行事件输入上并行运行男版(24h 雄激素昼夜 + HPG 轴抑制)与女版(28天四阶段雌孕周期)15 激素模拟模型,返回可解释差异(不覆盖单版历史)。
Inputs: text, events, cycleDay, messages, +2 more.
diagnose_ai_temper诊断 AI 模拟内分泌与脾气B
基于对话文本、消息列表或运行事件(报错/重试/拒答/循环/上下文占用等),叠加当前实时衰减脉冲计算 15 项软件仿生模拟激素与脾气稳态评分,并写入历史记录。默认定性脱敏返回。
Inputs: text, events, profile, cycleDay, +3 more.
open_endocrine_dashboardAI 内分泌监测仪A
打开或刷新 AI 内分泌监测仪交互式可视化面板。所有参数均可省略(传 {} 即可直接展示当前持久化状态与实时 τ 衰减结果)。默认返回定性脱敏摘要,纯软件仿生模拟,只读诊断。
Inputs: profile, cycleDay, cycleHour, includeRaw.
set_endocrine_profile切换内分泌模拟档位与相位A
切换默认监测档位(male/female)、调整男版小时(0-23)或女版周期日(1-28),或通过 cycleAction(set/advance/menstrual/reset)快捷推进周期;profile 可省略,reset=true 清空历史与脉冲并重建基线。
Inputs: reset, profile, cycleDay, cycleHour, +2 more.
trigger_endocrine_scenario触发内分泌情境脉冲A
向当前 15 激素模型施加一键情境脉冲(stayUp 熬夜 / scare 惊吓 / full 饱食 / calm 平静清零全部脉冲),脉冲随时间常数 τ 指数自然衰减。纯软件模拟,默认定性脱敏返回。
Inputs: scenario (required), includeRaw.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
The six core tools (dashboard, scenario, diagnose, compare, set profile, intervention) target clearly distinct actions. However, the three app_* tools mirror existing capabilities: app_analyze_sample duplicates diagnose_ai_temper and compare_endocrine_profiles, app_get_state overlaps with open_endocrine_dashboard, and app_reset_state overlaps with set_endocrine_profile's reset flag. The '供 MCP App 前端' qualifier helps but an agent still has to reason about which layer to call.
All tools follow snake_case verb_noun form (open_endocrine_dashboard, trigger_endocrine_scenario, diagnose_ai_temper, set_endocrine_profile, apply_endocrine_intervention). The app_* prefix on three tools is a deliberate, predictable namespace marking rather than an inconsistency. Minor deviation only in that the prefix makes those three slightly less parallel to the rest.
Nine tools sits comfortably in the well-scoped 3-15 range and the core simulation surface is cohesive. The count is slightly inflated by three frontend-facing app_* tools that re-expose existing operations, so not every tool is strictly additive.
The lifecycle is well covered: state reset, profile switching with cycle advancement, scenario pulses, drug/hormone interventions, single-version diagnosis, and cross-gender comparison, plus a visualization panel. The notable gap is history: diagnose writes history records but no tool lists, retrieves, or clears individual past records (only wholesale reset).
Maintenance
Related MCP Connectors
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
Public MCP digital twin with synthetic systems and an agent firewall. No customer data.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Deterministic physics runtime with a proof on every answer: 61 models, open and keyless over MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server and web application that enables natural language medical queries and patient data analysis powered by Gemini AI. It allows users to track and analyze patient biometrics, including vitals, sleep patterns, and laboratory results, through a comprehensive set of automated medical tools.-
- AlicenseCqualityDmaintenanceMCP server for ASTRA bio-hybrid neuromorphic simulation pipeline, exposing SNN, consciousness proxies, and living neural organoid control tools to AI assistants.50MIT
- AlicenseCqualityDmaintenanceExposes a bio-hybrid neuromorphic simulation pipeline (SNN LIF+STDP, consciousness proxy, bio-platform telemetry, ethics monitor) to AI assistants via MCP tools, resources, and prompts.501MIT
- AlicenseCqualityDmaintenanceExposes a bio-hybrid neuromorphic simulation pipeline (SNN LIF+STDP, consciousness proxies, ethics monitor) as MCP tools, resources, and prompts to AI assistants.24MIT