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

@jokerdpf/jimeng4-mcp

v1.0.10

Published

火山引擎即梦AI图片生成MCP工具 - 专注即梦4.0图片生成

Readme

@jokerdpf/jimeng4-mcp

一个精简版的即梦 MCP 服务,只保留 jimeng-v40-generate 这一个能力。

当前能力

jimeng-v40-generate

即梦 4.0 图片生成工具,支持:

  • 文生图
  • 单图编辑
  • 多图组合生成
  • 4K 超高清输出

主要参数:

  • prompt: 必填,生成提示词
  • image_urls: 可选,输入图片 URL 列表,最多 10 张
  • width / height: 可选,需同时传入
  • size: 可选,生成面积;若传入 1024 / 2048 / 4096 这类值,服务端会自动按边长转换为面积
  • scale: 可选,文本影响强度,范围 [0,1]
  • force_single: 可选,是否强制单图输出
  • seed: 可选,随机种子
  • min_ratio: 可选,最小宽高比
  • max_ratio: 可选,最大宽高比

轮询优化

jimeng-v40-generate 仍然是同步返回结果,但内部等待逻辑已优化为低占用轮询:

  • 提交任务后不会立刻查询,先等待首个冷启动窗口
  • 后续查询使用退避策略,逐步拉长间隔
  • 相比固定 5 秒轮询,可显著减少空查询请求和服务端压力

环境变量

使用前需要配置:

export JIMENG_ACCESS_KEY=your_access_key
export JIMENG_SECRET_KEY=your_secret_key

MCP 配置示例

{
  "mcpServers": {
    "jimeng": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@jokerdpf/jimeng4-mcp"],
      "env": {
        "JIMENG_ACCESS_KEY": "your_access_key",
        "JIMENG_SECRET_KEY": "your_secret_key"
      }
    }
  }
}

开发

npm install
npm run build
npm run dev