opencode-eyes: Giving Text Models a Pair of Eyes (StepFun step-3.7-flash)

Preface

DeepSeek Harness (DSH) adopts the “everything is a plugin” philosophy. For large models without native vision capabilities, functionality can be extended by mounting MCP servers. The opencode-eyes plugin is designed for this purpose—it encapsulates StepFun’s step-3.7-flash vision model within a plugin, enabling text models to “see” and describe images.

Core Features

  • Multimodal completion: Provides image understanding capabilities for text-only models.
  • Tool registration: Automatically registers the mcp__opencode_eyes__describe_image tool.
  • Out of the box: The MCP server is packaged within the plugin itself; no separate server file deployment is required.

Installation and Activation

CLI Installation

In the DSH configuration file (profile) you want to use, run:

dsh plugin --profile web add bauerelizabeth07139/opencode-eyes

Desktop Installation

  1. Open the Plugins sidebar.
  2. Click Add plugin.
  3. Enter bauerelizabeth07139/opencode-eyes or the full GitHub URL.
  4. Enable the newly appeared dsh-opencode-eyes bundle.

Uninstallation

dsh plugin --profile web remove dsh-opencode-eyes

Typical Usage

Environment Configuration

The plugin obtains credentials via the STEP_API_KEY environment variable or the apiKey in the configuration file. Ensure that your StepFun account has sufficient quota for calls.

Configuration Example

Add the plugin configuration in cordis.patch.yml:

- id: dsh-opencode-eyes
  name: 'dsh-opencode-eyes'
  config:
    apiKey: 'sk-...'
    toolCallTimeoutMs: 300000

Tool Invocation

The model calls the tool mcp__opencode_eyes__describe_image. Parameters:

  • image_path (required): Local image path.
  • prompt (optional): A description prompt for the image.

The plugin converts the image to Base64-encoded JPEG format and sends it to the StepFun API.

Configuration and Limitations

Configurable Items

The plugin supports adjusting the following parameters in the configuration:

Config Item Environment Variable Default Description
apiKey STEP_API_KEY empty StepFun authentication key; must be configured
model STEP_MODEL step-3.7-flash Vision model ID
timeoutSeconds STEP_TIMEOUT 120 Timeout for the server waiting for StepFun API response
maxDimension STEP_MAX_DIMENSION 2048 Maximum side length of the image after scaling
jpegQuality STEP_JPEG_QUALITY 85 Quality when converting to JPEG
toolCallTimeoutMs — 300000 Maximum budget (in milliseconds) for a single tool call in DSH

Notes

  1. API Base URL: The API base address https://api.stepfun.com/step_plan/v1/chat/completions is hardcoded in the server code and cannot be modified via configuration.
  2. Working directory: The plugin uses the src/ layout; the server must run in the src directory. This logic is automatically handled during plugin installation.
  3. Timeout settings: The StepFun server has a default timeout of 120 seconds, while DSH has a shorter default timeout. It is recommended to set toolCallTimeoutMs to at least 300000 (5 minutes) to avoid timeout.
  4. Runtime environment: The plugin runs with the permissions of the current DSH process; ensure it has read access to the image path.

License and Ecosystem

  • License: MIT
  • Maintainer: bauerelizabeth07139
  • Ecosystem note: This plugin is a project maintained in the community directory and has no affiliation with DeepSeek official.
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye