← 返回
开发者工具 中文

MiniMax CLI Web Search

Web search via MiniMax MCP using a local CLI wrapper (mcporter), with environment preflight, API-key/config checks, and normalized result formatting. Use whe...
使用本地CLI包装器(mcporter)通过MiniMax MCP进行Web搜索,包含环境预检、API密钥/配置检查和标准化结果格式化。
biggersun
开发者工具 clawhub v0.1.1 1 版本 99859.6 Key: 无需
★ 4
Stars
📥 2,053
下载
💾 49
安装
1
版本
#cli#latest#mcp#minimax#search

概述

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:

  • mcporter exists
  • 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

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 : required search query
  • --count : max printed results (default 5)
  • --freshness : freshness hint appended to query (optional)
  • --json: normalized JSON output
  • --raw: raw tool JSON output
  • --timeout : 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

  1. Start with a focused query (3–7 keywords).
  2. If low quality, rephrase once with narrower terms.
  3. Return key findings + links (no table required).
  4. For time-sensitive asks, include time words in query (e.g., today, latest, date).

Error model (for reliable automation)

Script exit codes:

  • 0: success
  • 2: argument error
  • 3: dependency missing (mcporter/python3)
  • 4: config/auth issue (MCP server unavailable, API key/auth problems)
  • 5: upstream/runtime/network failure
  • 6: no results (non-fatal)

Treat code 6 as a normal “no match” outcome, not a crash.


Risks and handling

  1. CLI/config drift across machines
    • Use --preflight before first use in a new environment.
  2. API key exposure risk
    • Never print key values; report only missing/invalid status.
  3. Temporary file safety
    • Wrapper uses mktemp for stderr/output temp files and cleans them with trap.
  4. Upstream response variance
    • Use --json normalized output for downstream automation.
  5. Timeout/network instability
    • Increase --timeout and retry with narrower query/count.
  6. 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

When presenting findings, include direct links for verification. Prefer 3–5 high-signal sources over large dumps.

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-03-29 05:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,938
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,521
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,586