npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hellofriday430/opencode-minimax-bridge

v0.1.1

Published

Bridges MiniMax mmx CLI capabilities (search, vision, media generation, quota) into OpenCode as native tools

Downloads

335

Readme

@hellofriday430/opencode-minimax-bridge

将 MiniMax mmx CLI 的能力桥接为 OpenCode 原生工具。

能做什么

安装后,OpenCode 会话中会多出 6 个直接可用的工具:

| 工具 | 功能 | |---|---| | mmx_search_query | Web 搜索 | | mmx_vision_describe | 图片理解与描述 | | mmx_image_generate | 图片生成 | | mmx_speech_synthesize | 文字转语音(TTS) | | mmx_music_generate | 音乐生成 | | mmx_quota_show | 查询 MiniMax API 配额用量 |

在对话中直接告诉 OpenCode 即可使用,例如:

"搜索一下 MiniMax 最新的模型发布" "生成一张夕阳下的沙滩图片" "把这段文字转成语音"

前置条件

  • Node.js 20+(插件使用 --experimental-strip-types
  • mmx-cli:MiniMax 官方 CLI 工具
  • MiniMax API Key:需要从 MiniMax 平台 获取

安装

# 1. 安装 mmx-cli(全局)
npm install -g mmx-cli

# 2. 安装此插件(全局)
npm install -g @hellofriday430/opencode-minimax-bridge

# 3. 配置 MiniMax API Key
# 方式 A:环境变量(推荐)
set MINIMAX_API_KEY=你的key

# 方式 B:mmx 配置文件
mmx config set api-key 你的key

配置

全局 opencode.json%APPDATA%\opencode\opencode.json)或 项目 opencode.json 中添加插件名:

{
  "plugin": [
    "@hellofriday430/opencode-minimax-bridge"
  ]
}

重启 OpenCode 后即可使用。

验证

cd node_modules\@hellofriday430\opencode-minimax-bridge
npm run verify

验证脚本会检查:插件布局、mmx CLI 是否可用、6 个工具是否完整注册、端到端调用是否正常。

可用工具详情

mmx_search_query

Web 搜索。返回搜索结果摘要。

参数: --q <查询词>

mmx_vision_describe

对图片进行识别和描述。支持本地图片路径或 URL。

参数: --image <路径或URL>

mmx_image_generate

根据文字描述生成图片。

参数: --prompt <描述词> [--style <风格>] [--aspect-ratio <比例>]

mmx_speech_synthesize

将文字合成为语音。

参数: --text <文本> [--voice-id <音色ID>] [--speed <语速>]

mmx_music_generate

生成音乐或歌曲。

参数: --prompt <描述词> [--duration <时长>] [--instrumental]

mmx_quota_show

查询当前 MiniMax API 账户的配额余量。

无需参数

工作原理

插件通过 Node.js 直接调用 node <mmx.mjs> 执行 mmx CLI 命令,将 mmx 的 JSON Schema 参数定义自动转换为 Zod 类型,OpenCode 的 LLM 能正确理解每个参数的含义和类型。

License

MIT