mihoyo-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MIHOYO_MCP_DATA_DIR | No | Data directory for accounts, credentials, and alert state. | ~/.mihoyo-mcp |
| MIHOYO_MCP_LOG_LEVEL | No | Log level (logs go to stderr; stdout is reserved for MCP protocol). | INFO |
| MIHOYO_MCP_FERNET_KEY | No | Credential encryption key; production environments should use a secret store. | auto-generated |
| MIHOYO_MCP_STAMINA_THRESHOLD | No | Default stamina threshold for starrail_check_alerts. | 200 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| 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. |
| 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). |
| auth_statusA | Overview of logged-in accounts and pending login sessions. |
| accounts_listA | List logged-in miHoYo accounts with their game roles (uid per game). No credentials are ever included. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AI1379/mihoyo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server