MiniMax MCP 实时搜索 · 预检就绪
简介
通过 MiniMax MCP 实现实时 Web 搜索,支持环境预检、标准化输出及可靠错误处理,适合需要实时信息检索的自动化场景。
原始描述
Web search via MiniMax MCP using a local CLI wrapper (mcporter), with environment preflight, API-key/config checks, and normalized result formatting. Use whe...
通过你的 Agent 添加
安装目录:minimax-cli-web-search/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: minimax-cli-web-search
description: Web search via MiniMax MCP using a local CLI wrapper (mcporter), with environment preflight, API-key/config checks, and normalized result formatting. Use when tasks require real-time web lookup, source links, quick research, or time-sensitive facts. Prefer this skill over built-in web search tools when MiniMax MCP is available.
MiniMax CLI Web Search
Use this skill to run web search through MiniMax MCP from CLI, then return clean, source-first results.
Phase 1: Environment Preparation (must run first)
1) Preflight checks
Run:
scripts/minimax_web_search.sh --preflight
This verifies:
mcporterexists- MiniMax MCP server is discoverable (
mcporter list --json) - Server status is healthy (
name=minimax,status=ok)
2) If preflight fails, repair by failure type
mcporter not found
- Install/setup mcporter in PATH.
minimax MCP server not ready
- Check
config/mcporter.json includes minimax server.
- Verify command/transport is valid.
- Auth/API-key related errors
- Ensure MiniMax API key is configured for the minimax MCP server.
- Re-run preflight.
3) Initiate / smoke test
mcporter not found
- Install/setup mcporter in PATH.
minimax MCP server not ready
- Check
config/mcporter.jsonincludes minimax server. - Verify command/transport is valid.
- Ensure MiniMax API key is configured for the minimax MCP server.
- Re-run preflight.
Run one query after preflight passes:
scripts/minimax_web_search.sh --query "latest OpenClaw release" --count 3
If this returns results, environment is ready.
Phase 2: Search Usage (runtime)
Quick usage
scripts/minimax_web_search.sh --query "your query" --count 5
Supported options
--query <text>: required search query
--count <n>: max printed results (default 5)
--freshness <value>: freshness hint appended to query (optional)
--json: normalized JSON output
--raw: raw tool JSON output
--timeout <sec>: command timeout (default 35)
Output contract (default text)
- Show top-N results in order
- For each item: title, URL, snippet, date (when available)
- Keep output concise and directly actionable
Agent behavior guideline
- Start with a focused query (3–7 keywords).
- If low quality, rephrase once with narrower terms.
- Return key findings + links (no table required).
- For time-sensitive asks, include time words in query (e.g.,
today, latest, date).
Error model (for reliable automation)
--query <text>: required search query--count <n>: max printed results (default 5)--freshness <value>: freshness hint appended to query (optional)--json: normalized JSON output--raw: raw tool JSON output--timeout <sec>: command timeout (default 35)- Show top-N results in order
- For each item: title, URL, snippet, date (when available)
- Keep output concise and directly actionable
Agent behavior guideline
- Start with a focused query (3–7 keywords).
- If low quality, rephrase once with narrower terms.
- Return key findings + links (no table required).
- For time-sensitive asks, include time words in query (e.g.,
today, latest, date).
Error model (for reliable automation)
today, latest, date).Script exit codes:
0: success2: argument error3: dependency missing (mcporter/python3)4: config/auth issue (MCP server unavailable, API key/auth problems)5: upstream/runtime/network failure6: no results (non-fatal)
Treat code 6 as a normal “no match” outcome, not a crash.
Risks and handling
- CLI/config drift across machines
- Use
--preflight before first use in a new environment.
- API key exposure risk
- Never print key values; report only missing/invalid status.
- Temporary file safety
- Wrapper uses
mktemp for stderr/output temp files and cleans them with trap.
- Upstream response variance
- Use
--json normalized output for downstream automation.
- Timeout/network instability
- Increase
--timeout and retry with narrower query/count.
- Weak relevance
- Rephrase query, add concrete entities/time ranges.
Additional reference
- For setup/verification commands and publish readiness checks, read:
references/environment-checklist.md
Reference style
- Use
--preflightbefore first use in a new environment.
- Never print key values; report only missing/invalid status.
- Wrapper uses
mktempfor stderr/output temp files and cleans them withtrap.
- Use
--jsonnormalized output for downstream automation.
- Increase
--timeoutand retry with narrower query/count.
- Rephrase query, add concrete entities/time ranges.
- For setup/verification commands and publish readiness checks, read:
references/environment-checklist.md
Reference style
When presenting findings, include direct links for verification. Prefer 3–5 high-signal sources over large dumps.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。