platforms/codex/skills/mx-message-query/SKILL.md
Query Midea MX / 美信 local message cache through the MX local HTTP query service from Codex. Use when the user asks to read MX sessions, search chat history, search messages globally or inside a group/session, list recent messages, or page message history. This is read-only and does not require send authorization. Never fall back to reading SQLite or app cache files directly.
npx skillsauth add codingsamss/ai-dotfiles mx-message-queryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill for read-only MX / 美信 message-cache queries.
mx_message_* tools if the current Codex context provides them.scripts/mx_query.py, which calls the MX local
HTTP query service only.scripts/mx_query.py resolves auth in this order:
MX_MESSAGE_QUERY_BEARER_TOKEN.OPENCLAW_MX_SERVER_PORT + OPENCLAW_MX_SERVER_SECRET from the current env.ai.midea-openclaw.gateway-stable.plist, then GET /oc-token with
x-server-secret to exchange a fresh OC token.MX_OC_TOKEN.mcporter.json./tmp/ua_token.txt.Never print or store the raw OC token or server secret in skill docs, repo files, logs, or memory.
List sessions:
python3 scripts/mx_query.py sessions --limit 20 --offset 0
List messages in a session:
python3 scripts/mx_query.py list --sid "<sId>" --page-size 20
Global search:
python3 scripts/mx_query.py search-global --keyword "<关键词>" --limit 20
Session search:
python3 scripts/mx_query.py search-session --sid "<sId>" --keyword "<关键词>" --limit 20
History paging:
python3 scripts/mx_query.py history \
--sid "<sId>" \
--mid "<mid>" \
--timestamp 1704000000000 \
--direction before
By default the script prints compact previews. Use --raw only when the user
needs complete returned JSON.
For the original MX tool contract, read references/original-skill.md.
development
Safely search MX users or groups and send Midea MX / 美信 IM messages from Codex. Use when the user asks to notify someone, send a message to a person or group, use a configured group alias, @ users, @ all, or send MX file/image messages. Read lookups need no extra authorization; every live send needs explicit user authorization for that exact target and message.
tools
MX channel output rules. Always active in MX conversations.
tools
Use the company WorkSpace `ws` CLI reliably as a delegated coding agent from Codex. Trigger when the user wants Codex to command `ws`, WorkSpace CLI, or the company opencode-derived coding tool to generate code, inspect a repo, run a bounded implementation task, or use a requested WorkSpace model while Codex reviews the output.
development
Safely work with Midea MX / 美信 interactions from Codex. Use when the user asks to search MX users or groups, prepare or send an MX message, notify someone in MX, inspect MX message-query capabilities, search MX chat history, or understand MX ocToken / UA auth behavior. Prefer dry-run before any live send.