Skip to main content
Glama
AI1379
by AI1379

mihoyo-mcp

独立的米哈游 MCP Server —— 同时面向**米游社(国服)**与 HoYoLAB(国际服),底层依赖 seriaati/genshin.py(MIT)。任何 MCP 客户端 (nahida-bot、Claude Desktop、Codex……)都可以直接使用。

设计边界

MCP 管「怎么和米哈游说话」;客户端管「什么时候去问,以及问完之后告诉谁」。

  • 调度(cron)、阈值策略、消息推送 → 客户端(nahida-bot 已有 Scheduler / Channel)

  • 登录、凭据存储、API 调用、告警去重 → 本服务

  • 凭据永远不出安全边界:Cookie 全程存在服务内部(Fernet 加密),工具结果里只有 account_id,Agent context 里不会出现任何 token

                ┌─────────────────────┐
                │     nahida-bot      │
                │  Cron / Scheduler   │
                │       │             │
                │       ▼             │
                │  MCP Client ───────────────┐
                │       ▼             │     │ MCP (stdio)
                │  QQ Channel         │     ▼
                └─────────────────────┘ ┌──────────────────┐
                                       │    mihoyo-mcp     │
                                       │ QR login          │
                                       │ credential vault  │
                                       │ daily notes       │
                                       │ alert dedup state │
                                       └────────┬──────────┘
                                                │
                                         genshin.py
                                                │
                                     米游社 / HoYoLAB API

Related MCP server: Xiaohongshu MCP Server

当前能力

能力

状态

米游社扫码登录(非阻塞 start/poll)

✅ 复用 genshin.py web QR 链路

多账号 + 游戏角色(uid)发现

✅

星穹铁道实时便笺

✅ starrail_daily_note

原神实时便笺

✅ genshin_daily_note

绝区零实时便笺

✅ zzz_daily_note

星铁告警检查(跨轮去重)

✅ starrail_check_alerts

HoYoLAB 登录

⏳ 未接入(见路线图)

工具一览

工具

说明

auth_start_qr_login(platform)

创建扫码登录,返回 login_url + base64 PNG 二维码 + session_id

auth_poll_qr_login(session_id)

轮询扫码状态:pending / scanned / confirmed(确认后自动保存凭据并发现游戏角色)

auth_status()

已登录账号数、待完成登录会话

accounts_list()

列出账号及其游戏角色(uid),不含任何凭据

accounts_refresh(account_id?)

重新发现账号下的游戏角色

starrail_daily_note(account_id?)

开拓力(含备用)、每日实训、模拟宇宙、派遣

genshin_daily_note(account_id?)

树脂、洞天宝钱、每日委托、派遣

zzz_daily_note(account_id?)

电量、活跃度、录像店等

starrail_check_alerts(account_id?, stamina_threshold=200)

只返回「值得通知的变化」;空列表 = 保持安静

account_id 在只有一个账号时可省略。

命名说明:设计稿里用的是 mihoyo.auth.start_qr_login 这类点号命名,但 MCP 规范 (SEP-986)要求工具名匹配 ^[a-zA-Z0-9_-]{1,64}$,点号会导致部分客户端拒绝加载, 因此采用扁平蛇形命名,用 auth_ / accounts_ / starrail_ 等前缀充当命名空间。

为什么 check_alerts 在 MCP 里

体力阈值判断(217 >= 200 && recovery <= 1800)不需要烧 LLM token,而「派遣回来了」 每次轮询都报一遍是不可接受的。告警去重状态(armed/re-arm)属于米游社集成状态,天然属于 本服务。客户端的 cron 只需要:

starrail_check_alerts() → alerts == [] → 静默
                      → alerts != [] → 推送消息

快速开始

uv sync                       # 安装依赖
uv run pytest                 # 运行测试
uv run python scripts/smoke_stdio.py   # stdio 握手冒烟测试
uv run mihoyo-mcp             # 启动 stdio server

客户端配置示例(Claude Desktop / 任何支持 stdio MCP 的客户端):

{
  "mcpServers": {
    "mihoyo": {
      "command": "uv",
      "args": ["run", "--directory", "D:/Projects/mihoyo-mcp", "mihoyo-mcp"]
    }
  }
}

配置(环境变量)

变量

默认

说明

MIHOYO_MCP_DATA_DIR

~/.mihoyo-mcp

数据目录(账号 / 凭据 / 告警状态)

MIHOYO_MCP_FERNET_KEY

自动生成

凭据加密 key;生产环境建议放入 secret store

MIHOYO_MCP_STAMINA_THRESHOLD

200

starrail_check_alerts 默认体力阈值

MIHOYO_MCP_LOG_LEVEL

INFO

日志级别(日志走 stderr,stdout 保留给 MCP 协议)

数据目录内容:

~/.mihoyo-mcp/
├── accounts.json     # 公开账号元数据(无秘密)
├── credentials.enc   # Fernet 加密的 Cookie/token 库
├── alert_state.json  # 告警去重状态
├── fernet.key        # 未设置环境变量时自动生成的 key(带告警日志)
└── .lock             # 数据目录独占锁:一个目录只允许一个活进程,重复启动直接报错退出

所有落盘文件都走原子写(temp + os.replace),进程写一半崩溃不会留下半截文件。

目录结构

src/mihoyo_mcp/
├── server.py          # MCPServer 装配 + stdio 入口
├── config.py          # 环境变量配置
├── context.py         # AppContext 单例装配
├── errors.py          # 领域错误(映射为 MCP tool error)
├── accounts/          # 账号模型 / 注册表 / 加密凭据库
├── auth/              # 扫码登录(start/poll 会话)
├── games/             # genshin.py 客户端工厂 + 便笺获取/归一化
├── alerts/            # 告警去重状态机(纯逻辑,可测)
└── tools/             # MCP 工具注册(auth / accounts / notes)

登录流程(米游社)

  1. auth_start_qr_login("miyoushe") → 把 qr_png_base64(或 login_url)生成的二维码发给用户

  2. 用户用米游社 App 扫码并在手机上确认

  3. auth_poll_qr_login(session_id) 轮询直到 confirmed

  4. 服务内部保存 v2 cookies(account_id_v2 / account_mid_v2 / ltoken_v2 / cookie_token_v2…) 并自动发现游戏角色;之后 Agent 只会看到 account_id 形如 miyoushe:123456

路线图

按消费方(nahida-bot #52 等)优先级排序:

  1. ✅ Account / Auth —— 米游社扫码、多账号、角色发现

  2. ✅ Daily Note + 告警 —— 星铁/原神/绝区零便笺、check_alerts

  3. ⏳ HoYoLAB 登录 —— 邮箱密码(genshin.py 已支持)或 OS 扫码(endpoint 待验证)

  4. 签到 / 兑换码(check_in / codes.list / codes.redeem)

  5. Profile / 角色展示(Enka、面板查询)

  6. 游戏资料 / Build / 养成计算(hakush.in / Yatta / Ambr)

  7. Gacha 导入与统计

  8. Renderer(可选的图片卡片生成,工具返回结构化数据 + 独立渲染工具)

参考项目与许可证

项目

许可证

本项目中的角色

seriaati/genshin.py

MIT

直接依赖:API 封装、DS、cookie、扫码链路

seriaati/hoyo-buddy

GPL-3.0

架构参考(账号/凭据/提醒),不复制代码

Ljzd-PRO/nonebot-plugin-mystool

MIT

国服行为参考(错误处理、便笺字段坑)

UIGF-org/mihoyo-api-collect

CC BY-NC 4.0

协议字典,仅用于查询验证,不搬运实现

Marchen-orz/MiyoQian

未标明

现代国服扫码登录参考

本项目采用 MIT License。

Available Tools

9 tools
accounts_listA

List logged-in miHoYo accounts with their game roles (uid per game). No credentials are ever included.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.8/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. It does clarify that credentials are never included, which is useful security context, but it does not mention what happens when no accounts are logged in or whether the result is cached or fetched live.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence conveys the action, scope, output content, and an important security characteristic. There is no redundant or filler phrasing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter list tool, the description captures scope, output content, and credential safety. It does not specify the exact response shape, but that is acceptable given the simplicity and the sibling context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so the schema provides none. The description adds useful semantic context by describing what the result contains: game roles with uid per game. That is enough to set the baseline and a bit beyond.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses the specific verb 'List' with the well-scoped resource 'logged-in miHoYo accounts' and describes the included content: game roles and uid per game. This makes the tool's purpose distinct from auth flow and refresh sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description states what the tool produces, but it gives no guidance on when to prefer it over related tools like auth_status or accounts_refresh. There are no explicit conditions, exclusions, or references to alternatives.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

accounts_refreshA

Re-discover game roles (uids) for an account from miHoYo. Pass account_id, or omit it when only one account is logged in.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_idNo

TDQS

A3.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description must disclose side effects and expectations itself. 'Re-discover' implies an active refresh, but the description does not state whether the operation is safe, requires authentication, mutates account state, or what the tool returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, states the purpose first, and contains no filler or redundant content. Every part of the text earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description should clarify expected output and prerequisites such as an authenticated session. It states the tool's purpose and parameter logic adequately for a minimal one-argument tool, but leaves room for an agent to guess at the refresh behavior and return contract.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has no property description, but the tool description compensates by explaining the meaning of account_id and the rule for omitting it when only one account is logged in. This is sufficient for a single optional parameter, though no format or example is included.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb, 'Re-discover,' and names the specific resource ('game roles (uids) for an account'). This clearly differentiates the tool from the sibling accounts_list tool, which would list accounts rather than refresh role discovery.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit invocation guidance for the parameter: pass account_id, or omit it when only one account is logged in. However, it does not mention when to prefer this tool over alternate workflows such as the login/auth tools or accounts_list, so the broader usage context is left implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

auth_poll_qr_loginA

Poll a QR login session started by auth_start_qr_login. Returns status pending/scanned/confirmed; on confirmed the account is stored and returned (cookies stay inside the server).

ParametersJSON Schema
NameRequiredDescriptionDefault
session_idYes

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description does meaningful behavioral disclosure: it defines the three statuses, states that a confirmed session stores and returns the account, and explicitly notes that cookies stay inside the server. This is valuable beyond the name and schema, though it does not cover what happens on session expiry or repeated calls.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence: it opens with the primary action, then flows naturally into the return statuses and the stored-account side effect. No filler or redundant repetition of the tool name exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given a single parameter and no output schema, the description is nearly complete: it links the tool to its prerequisite caller, specifies the statuses, and clarifies server-side cookie handling. Minor gaps such as invalid-session handling are not vital for choosing or invoking the tool correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is effectively 0% and the description does not directly explain the 'session_id' parameter, but it identifies where that session comes from ('started by auth_start_qr_login'). This gives enough context to infer the parameter's origin, though format or error semantics are not addressed.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Poll') with a clear resource ('a QR login session'), and explicitly ties it to auth_start_qr_login, which distinguishes it from the sibling starter. It also enumerates the possible return statuses, making its purpose fully unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description clearly implies the tool should be used after auth_start_qr_login and that it returns pending/scanned/confirmed states, which indicates a polling flow. However, it does not explicitly contrast this with auth_status or explain when one should choose this over sibling alternatives, leaving some usage inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

auth_start_qr_loginA

Start a Miyoushe QR login. Returns a login URL, a base64 PNG QR code and a session_id. Show the QR to the user (they scan it with the Miyoushe app), then call auth_poll_qr_login.

ParametersJSON Schema
NameRequiredDescriptionDefault
platformNomiyoushe

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full transparency burden. It discloses the outputs (login URL, base64 PNG QR code, session_id), describes the user-facing action (show QR for scanning), and indicates the next step (poll). It does not mention expiration or session cleanup, but for this flow the provided behavior is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loads the core action, and packs essential behavior into a small space. Every sentence contributes: what it does, what it returns, and what to do next. No filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description must explain return values; it does, explicitly listing the URL, QR, and session_id. It also completes the workflow by naming the follow-up call. Missing details like QR expiration or platform constraints are minor given the simple one-parameter signature and clear next step.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It implicitly tells the agent the default platform is 'miyoushe' by saying 'Miyoushe QR login,' but it does not explain the 'platform' parameter's allowed values or behavior when changed. With a single optional parameter and a default, this is a minor but real gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description starts with a specific verb and resource: 'Start a Miyoushe QR login.' It clearly distinguishes this tool from its sibling auth_poll_qr_login by framing this as the initiating step and explicitly naming the follow-up. An agent can confidently identify when to call start vs. poll.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides clear context: this is the entry point for QR login. It also gives explicit follow-up instructions ('then call auth_poll_qr_login'), which is highly valuable. However, it does not explicitly state when not to use it or mention alternatives like auth_status, but the intended QR flow is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

auth_statusA

Overview of logged-in accounts and pending login sessions.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description conveys the tool's core behavior: it returns a summary of logged-in accounts and pending sessions. Because no annotations are provided, the description carries the full burden, and it reasonably implies a read-only status operation. It doesn't detail potential side effects, but for an overview tool, no major mutation behavior is expected.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single succinct sentence that immediately communicates the tool's purpose. It includes two key idea elements — logged-in accounts and pending login sessions — with no repetition or filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, no-output-schema tool, the description is reasonably complete. It tells the agent what resource is being observed and what kind of state information will be surfaced. It does not describe the exact shape of the output, but for an 'overview' read operation this omission is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so no parameter documentation is needed. The description correctly focuses entirely on what the tool returns rather than arguing about inputs, which fits the baseline for parameterless tools.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly indicates that this tool provides an overview of logged-in accounts and pending login sessions. It identifies the resource (authentication status) and implies a read/view action, which separates it from login-flow siblings like auth_start_qr_login and auth_poll_qr_login. However, it does not explicitly distinguish its behavior from accounts_list, which may overlap.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'Overview of logged-in accounts and pending login sessions' implies this should be used when the agent wants to check current authentication state. It does not explicitly specify when to choose this over accounts_list or the QR login flow tools, nor does it state any exclusions or conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

genshin_daily_noteA

Genshin Impact real-time note: resin, realm currency, commissions and expeditions. account_id from accounts_list; omit when only one account is logged in.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_idNo

TDQS

A4.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

There are no annotations, so the description carries the full burden of behavioral disclosure. It does state the data returned and the real-time nature of the note, which is useful, but it does not mention authentication requirements, side effects, failure behavior, or refresh/rate implications.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two short, information-dense sentences. The primary output information comes first, followed by the parameter guidance. Every phrase earns its place with no redundant wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single optional-parameter read-style tool, this is nearly complete: it lists the returned data categories and explains how to handle account selection. Some additional context about requiring an authenticated Genshin account could strengthen it, but the mention of accounts state and acounts_list makes the expectation reasonably clear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema only provides the parameter name, an optional string/null type, and a default of null. The description adds meaningful semantics by explaining where account_id comes from and exactly when it should be omitted, fully compensating for the schema's 0% description coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as a Genshin Impact real-time note and lists the specific data it covers: resin, realm currency, commissions, and expeditions. This is precise enough to distinguish it from sibling tools like starrail_daily_note and zzz_daily_note.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides practical usage guidance for the account_id parameter: source it from accounts_list and omit it when only one account is logged in. It does not explicitly name sibling alternatives or give when-not-to-use guidance, but the intended context is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

starrail_check_alertsA

Check a Star Rail note and return only noteworthy changes (stamina nearly full/full, expeditions complete, daily training complete), with cross-poll dedup — an alert fires once until the condition resets. Designed for scheduled polling: empty alerts means stay quiet. account_id from accounts_list; omit when only one account is logged in; stamina_threshold defaults to 200.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_idNo
stamina_thresholdNo

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full behavioral burden, and it delivers on the most important trait — stateful dedup: 'a good alert fires once until the condition resets.' This is exactly the kind of behavior an agent cannot discover from the schema and must know to avoid duplicate acknowledgments on repeated polls. It also documents the silent-empty contract. It could add what 'resets,' or whether this is safe read-only, but core behavior is well covered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single paragraph that front-loads the core behavior plus the key distinguishing feature (alerts, not full note), then dedup policy, then polling contract, then the two parameters. Every clause earns its place; there is no filler or restatement of the schema's existing types. This is an efficient, high-information structure.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 2-parameter, no-annotation, no-output-schema polling tool it is largely complete: triggers, dedup/reset semantics, silent behavior, parameter origin, default, and omissions. The main gap is the alert payload form (there is no output schema, and the description never says what an alert object looks like when populated), so an agent cannot predict the exact return shape without probing the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% (both params bare with only type/null/default: null). The description compensates meaningfully at a compact level: it states where account_id comes from (accounts_list), when it may be omitted, and the stamina_threshold's semantics (default 200) plus its relation to the noteworthy threshold. Remaining gap: the inclusive/exclusive relationship between current stamina and the threshold (e.g., alert when stamina needs rest ≥ threshold) is not spelled out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb-resource pair ('Check a Star Rail note') and the exact output contract: 'return only noteworthy changes' with named categories (stamina nearly full/full, expeditions complete, daily training complete). This clearly differentiates it from sibling starrail_daily_note (full note) and genshin/zzz_daily_note (other games) without needing to inspect schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Designed for scheduled polling: empty alerts means stay quiet' explicitly states the intended invocation context and what silence means in that loop. The parameter guidance ('account_id from accounts_list; omit when only one account is logged in') also functions as usage direction. It stops short of naming the exact alternative tool (starrail_daily_note) for the 'need the full note' case, so exclusion guidance is implied rather than stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

starrail_daily_noteA

Star Rail real-time note: stamina (trailblaze power), reserve stamina, daily training, weekly rogue points and expeditions. account_id from accounts_list; omit when only one account is logged in.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_idNo

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does disclose the returned data surface and one behavioral condition (account_id omission when a single account is active), which is genuinely useful. It leaves unstated how the tool behaves with no account logged in, whether authentication is required, and any failure modes — gaps that are notable given the absence of an output schema and annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense, front-loaded sentence with zero waste: the first clause tells the agent what the tool returns, and the second clause handles parameter provenance and the omission rule. Every phrase earns its place given that the schema and no output schema leave the description as the primary documentation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity, single-optional-parameter tool with no output schema, the description covers the essential details: what data is returned and how to source the parameter. What's missing is minimal and somewhat scoped — no explicit statement about authentication state or the single-account default behavior at runtime. Overall, an agent would likely call this correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description is the only source of meaning for account_id. It compensates well: it explains where the value must come from (accounts_list) and sets the cardinality rule (omit when one account is logged in). This goes beyond what the bare schema provides and gives the agent actionable semantics for the single parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific resource (Star Rail daily note) and enumerates the exact data it returns (stamina, reserve stamina, daily training, weekly rogue points, expeditions). The game name in the description, together with the tool name, lets an agent distinguish it from genshin_daily_note and zzz_daily_note, though the description doesn't explicitly name those siblings. The verb is implied rather than explicit (a 'retrieve'/'get' action is assumed), which keeps this from being a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides useful invocation guidance: account_id comes from accounts_list and should be omitted when only one account is logged in — this tells the agent exactly how to fill the parameter. However, it gives no explicit 'use this instead of X' guidance; differentiation from genshin_daily_note/zzz_daily_note and starrail_check_alerts is left to inference from the game-prefixed naming. That makes the usage guidance strong on parameter handling but weak on tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

zzz_daily_noteA

Zenless Zone Zero real-time note: battery charge, engagement, video store. account_id from accounts_list; omit when only one account is logged in.

ParametersJSON Schema
NameRequiredDescriptionDefault
account_idNo

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full behavioral burden. The phrase 'real-time note' plus the listed outputs implies a read-only snapshot, but it does not explicitly state that no mutation occurs, that authentication is required, or what happens when no account is logged in. The account-related guidance is useful, but the behavioral profile is mostly inference.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and information-dense: the domain, resource, relevant outputs, and parameter guidance are all packed into a single sentence. There is no filler, repetitive wording, or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple optional parameter and lack of an output schema, the description covers the key invocation detail and even previews the returned fields. The main gap is that it does not state authentication prerequisites or behavior when zero accounts are logged in, but the account_id guidance provides enough context for most agentic flows.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema describes account_id only with a type and default, and schema description coverage is 0%. The description compensates fully by explaining the exact source of the value (accounts_list) and the condition for omitting it. This is high-value guidance an agent needs before calling the tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the resource clearly: a real-time note for Zenless Zone Zero, and enumerates what it contains (battery charge, engagement, video store). It implicitly distinguishes itself from the sibling starrail_daily_note and genshin_daily_note by naming the game. It lacks an explicit verb like 'get' or 'fetch,' but the meaning is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives concrete invocation guidance: where account_id comes from (accounts_list) and when to omit it (when only one account is logged in). It does not explicitly discuss alternatives or exclusion cases, but the game-specific phrasing makes the intended use clear relative to the sibling game-note tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 9 tool updatesv0.1.0
    • First observedaccounts_list
    • First observedaccounts_refresh
    • First observedauth_poll_qr_login
    • First observedauth_start_qr_login
    • First observedauth_status
    • First observedgenshin_daily_note
    • First observedstarrail_check_alerts
    • First observedstarrail_daily_note
    • First observedzzz_daily_note

TDQS

A4/5.0

Scored across 9 tools

Disambiguation4/5

Most tools have sharply distinct purposes: auth tools, account tools, and per-game note tools are clearly separated. However, auth_status and accounts_list both relate to logged-in accounts, and starrail_daily_note vs starrail_check_alerts could be confused if not read carefully.

Naming Consistency4/5

Names follow a consistent lower_snake_case, domain-prefixed pattern like auth_start_qr_login, accounts_refresh, and genshin_daily_note. The main deviation is that 'daily_note' is a noun rather than a verb phrase like 'get_daily_note', but the pattern remains predictable.

Tool Count5/5

Nine tools is a well-scoped size for this server: QR login lifecycle, account listing/refresh, and three per-game real-time note endpoints plus one alert helper. Each tool has a distinct role and none feels redundant or excessive.

Completeness4/5

The core workflow is covered: login, poll login, list accounts, refresh roles, and retrieve daily notes for all three supported games. Minor gaps exist such as no explicit logout/account removal and alert-polling only for Star Rail, but agents can work around these by using the existing notes tools.

Maintenance

ActivitySlowing
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Discord using personal user tokens instead of bot applications, allowing for seamless message management and server exploration. It provides tools for reading history, sending messages, and searching across channels and DMs directly through MCP-compatible clients.
    10
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI assistants to interact with Xiaohongshu to publish image notes, search content, and manage account details. It uses Playwright to securely handle session authentication and API signatures through the platform's internal network context.
    90 PyPI
    2
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server enabling LLMs to interact with the NodeSeek forum, supporting account status retrieval, daily check-in, post browsing, reading, replying, and posting.
    4
    -
  • A
    license
    A
    quality
    C
    maintenance
    Enables MCP clients to search songs, retrieve details and lyrics, and manage personal playlists on NetEase Cloud Music, with optional local player control on macOS, all through a privacy-first, self-hosted service.
    17
    MIT