Repository navigation
Releases
Releases · bauerelizabeth07139/opencode-eyes
v1.0.3
Fixes (Bad Request / invocation)
- Bad Request fixed: image_path now accepts local file paths, http(s) URLs, data URIs (data:image/...;base64,), and raw base64 strings, so text-only models can pass any image reference without errors.
- Force usage for pure-text models: tool description now explicitly states this is the ONLY way to read images when using a text-only model, and instructs the model to always call describe_image (never dump image bytes/base64 into context).
- Added User-Agent header for URL image downloads.
- Cleaner error messages for missing files, malformed base64, and download failures.
Note
opencode MCP request timeout defaults to 5000ms; set "timeout": 120000 for this server (already done in the installed config).
v1.0.2
Fixes
- Fix MCP -32001 Request timed out: images are now downscaled and JPEG-compressed before upload, cutting payload and API latency so requests stay under the MCP client timeout (default 5000ms).
- Fix empty descriptions: step-3.7-flash sometimes puts the answer in reasoning_content/reasoning with empty content; server now falls back automatically.
- Fix Windows Chinese garbling: stdout/stdin switched to UTF-8 byte IO.
- Add ping method support and configurable STEP_TIMEOUT/STEP_MAX_DIMENSION/STEP_JPEG_QUALITY.
Usage note
opencode MCP request timeout defaults to 5000ms. If you still hit timeouts, set in opencode config:
"mcp": { "opencode-eyes": { "timeout": 120000 } } or "experimental": { "mcp_timeout": 120000 }.
v1.0.1
opencode-eyes v1.0.1
修复:使用 Step Plan(中国)专用地址 https://api.stepfun.com/step_plan/v1。
功能
- 工具
describe_image: 描述一张图片的内容,使用 StepFun Step-3.7-flash 多模态大模型
环境变量
| 变量 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| STEP_API_KEY | 是 | — | StepFun API Key |
| STEP_MODEL | 否 | step-3.7-flash | 使用的模型名称 |
安装
pip install Pillow
运行
set STEP_API_KEY=你的StepFun_API_Key
python -m opencode_eyes
在 OpenCode / Claude Desktop 中配置
{
"mcpServers": {
"opencode-eyes": {
"command": "python",
"args": ["-m", "opencode_eyes"],
"env": {
"STEP_API_KEY": "你的StepFun API Key"
}
}
}
}v1.0.0
opencode-eyes v1.0.0
为不具备多模态能力的模型提供**"眼睛"**。
功能
- 工具
describe_image: 描述一张图片的内容,使用 StepFun Step-3.7-flash 多模态大模型
环境变量
| 变量 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| STEP_API_KEY | 是 | — | StepFun API Key |
| STEP_MODEL | 否 | step-3.7-flash | 使用的模型名称 |
安装
pip install Pillow
运行
set STEP_API_KEY=你的StepFun_API_Key
python -m opencode_eyes