给不具备多模态能力的模型一双眼睛:把随插件分发的 stdio MCP 服务器挂成 mcp__opencode_eyes__describe_image,把图片交给 StepFun step-3.7-flash 并返回详细描述。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:bauerelizabeth07139/opencode-eyes
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
Eyes for models that cannot see. The image goes to StepFun's
step-3.7-flash vision model; the description comes back as tool output.
给不具备多模态能力的模型一双眼睛:把图片交给 StepFun 多模态模型,拿回文字描述。
As a DeepSeek Harness plugin: the MCP server ships inside the bundle, so
installing one plugin is the whole setup — no mcpServers file to hand-edit.
Install
DeepSeek Harness Desktop — open Plugins in the sidebar, choose Add plugin, and enter:
https://github.com/bauerelizabeth07139/opencode-eyes
Then switch the new dsh-opencode-eyes bundle on. The Desktop app boots the
reserved desktop profile, so that is where it has to be enabled.
dsh CLI — install it into the profile you actually boot:
dsh plugin --profile web add bauerelizabeth07139/opencode-eyes
No git on the machine? pnpm resolves a git shorthand with git ls-remote,
which fails with 'git' is not recognized when git is missing. Use the tarball
instead — that path is plain HTTPS:
dsh plugin --profile web add https://codeload.github.com/bauerelizabeth07139/opencode-eyes/tar.gz/main
The same address works in the Desktop Add plugin dialog. Replace main
with a commit SHA to pin an exact revision (/tar.gz/<sha>).
Uninstall with dsh plugin --profile web remove dsh-opencode-eyes.
Requirements
- Python ≥ 3.8 on
PATH, or pointed at withpython. - Pillow in that interpreter — the server's only third-party import
(
pip install Pillow). - A StepFun API key in
STEP_API_KEY(orconfig.apiKey). Without one the server still starts anddescribe_imagereturns a clear error.
Tools
The server registers 1 tool(s). DSH namespaces them automatically,
so the model calls them as mcp__opencode_eyes__<tool>:
| Tool | What it does |
|---|---|
describe_image |
Reads an image file, base64-encodes it as JPEG (optionally downscaled) and asks the vision model to describe it. Parameters: image_path (required), prompt (optional). |
Configuration
| Key | Environment variable | Default | Meaning |
|---|---|---|---|
python |
— | discovered | interpreter that runs the server |
apiKey |
STEP_API_KEY |
(empty) | StepFun credential; required by describe_image |
model |
STEP_MODEL |
step-3.7-flash |
model id sent in the request |
timeoutSeconds |
STEP_TIMEOUT |
120 |
the server's own HTTP timeout |
maxDimension |
STEP_MAX_DIMENSION |
2048 |
images are downscaled to this edge length |
jpegQuality |
STEP_JPEG_QUALITY |
85 |
JPEG quality of the re-encoded image |
toolCallTimeoutMs |
— | 300000 |
DSH's per-call budget; keep it above timeoutSeconds |
env |
— | {} |
raw environment passthrough for anything else |
Every field is optional and lives in the loader row. For example, in
cordis.patch.yml:
- id: dsh-opencode-eyes
name: 'dsh-opencode-eyes'
config:
apiKey: 'sk-...'
toolCallTimeoutMs: 300000
Notes
- The API base URL is compiled into the server (
https://api.stepfun.com/step_plan/v1/chat/completions); there is nobaseUrloption to point it elsewhere. This plugin exposes only what the server actually reads. src/layout. The package is asrc/-layout Python module, so the server must run with the repository'ssrcdirectory as its working directory. The plugin does that for you.- Timeouts. The server waits up to
STEP_TIMEOUT(120 s) for StepFun, which is longer than the harness's 60 s default, so the plugin mounts with a 300 s per-call budget.
How it is mounted
index.js resolves a Python interpreter (the configured python, then
python3/python on PATH), hands the server its argv and working directory,
and mounts it as a stdio MCP server through @deepseek-ai/dsh-mcp-client with
failOnStartupError: true, so a server that cannot start is a visible error
rather than a silently missing tool.
Credentials are forwarded explicitly. The harness scrubs credential-shaped
variables (KEY, TOKEN, SECRET, PASSWORD) out of the environment a child
process inherits, so config.apiKey — falling back to the variable the server
documents — is written into the child's environment by the plugin itself. That
means both of these work:
config:
apiKey: '<your key>'
export STEP_API_KEY='<your key>' # picked up at load time
Development
No build step and no runtime dependencies — @deepseek-ai/cordis and
@deepseek-ai/dsh-mcp-client are peers supplied by the Harness.
npm test # node >= 22: manifest checks + the stdio mount, both Harness-free
The mount test loads index.js with @deepseek-ai/dsh-mcp-client stubbed and
asserts the exact stdio configuration the plugin produces, including the
credential forwarding above.
Repository layout
| Path | Purpose |
|---|---|
index.js |
the DSH plugin: resolves the interpreter and mounts the server |
cordis.patch.yml |
the loader row that activates the plugin |
locale/{en,zh}.json |
card title and description for the plugin lists |
assets/icon.svg |
card artwork |
test/ |
npm test: manifest composition and the mount contract |
src/opencode_eyes/ |
the MCP server, unchanged |
pyproject.toml, requirements.txt |
the Python package metadata, unchanged |
Other hosts (unchanged)
The server is a plain stdio MCP server and still works anywhere else. The
repository's original README is kept verbatim as
README.opencode.md, and the launch stanza from it keeps
working:
{
"mcp": {
"opencode-eyes": {
"type": "local",
"command": ["python", "-m", "opencode_eyes"],
"enabled": true,
"timeout": 120000,
"environment": { "STEP_API_KEY": "你的StepFun API Key" }
}
}
}
On another host, run the server from the repository's src directory (or put
src on PYTHONPATH) — that is the one thing the plugin adds.
License
MIT — the repository declared MIT in pyproject.toml but shipped no licence file; this plugin's release adds one.
链接
同类插件
liustack/modlens★ 5115
为纯文本模型架起视觉桥梁:粘贴图片,输出结构化 JSON 证据(OCR、版面、语义)。
ysr666/dsh-vision-router★ 1310
为纯文本 Agent 提供视觉能力:内置免 Key 视觉链 + 像素级视觉工具(看图问答、定位、裁剪、像素对比、取色、OCR、矢量化、抠图、截图);粘贴图片即可用。
Anionex/dsh-vision-toolkit★ 953
让纯文本模型处理视觉任务:粘贴图片后自动切换到 Vision Toolkit 变体,支持图片问答、多图比较、长截图 OCR、截图还原前端 UI、元素定位与像素对比。默认无需 API Key——图片经作者自建的免费服务处理,每台机器每天 100 张;也可改为指向自己的服务商。
SAOS-3624/dsh-see-now★ 798
让只有文字的智能体「看」实时屏幕或摄像头:每帧按画面变化量打分,只把真正变了的帧拼成一张带编号、带音轨条的宫格图——看视频、看演示、看游戏都行,token 只花在变了的地方。
kingcharleslzy-ai/dsh-qwen-studio★ 708
DSH 的 Qwen Image 2.1 创作工作区:本机 MLX 或自己的 NVIDIA 服务器,支持原生参考编辑、LoRA、结构控制、蒙版、整套预设、图库与对话实时进度,提供校验更新和 Agent 安装指南。
SAOS-3624/dsh-video-storyboard★ 614
把视频(本地文件,或 B 站 / yt-dlp 链接)压成一张可寻址的宫格图:每格烧编号、对应精确时间、挂台词,底部还有同时间轴的音频包络;video_zoom 可对任意窗口高清重看——纯文本模型因此能「看」视频,而不是读别人写的摘要。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。