avdergh/chroma-cut--plugins-dsh-chroma-cut0

dsh-chroma-cut

DeepSeek Harness bundle for Chroma Cut: cut chroma-backed raster assets into transparent PNGs through the mcp__chroma_cut__cut_asset and mcp__chroma_cut__cut_sheet tools.

包名
dsh-chroma-cut
版本
0.1.3
许可证
MIT
最近更新
2026年8月28日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:avdergh/chroma-cut#b7d6e8b87d8eae3706fe45e84638be5003a0582c&path:plugins/dsh-chroma-cut

dsh-chroma-cut

npm version

DeepSeek Harness bundle for Chroma Cut: cut chroma-backed raster assets into transparent PNGs while preserving dark anti-aliased outlines.

The bundle reuses the same Python MCP server as the Codex plugin and exposes its two tools to the agent through the DSH-shipped @deepseek-ai/dsh-mcp-client bridge:

  • mcp__chroma_cut__cut_asset — cut one image region into a transparent PNG.
  • mcp__chroma_cut__cut_sheet — run a JSON batch job with optional group normalization and QA previews.

Install

dsh plugin --profile  add dsh-chroma-cut

Alternatives without npm:

  • GitHub Release tarball:

    dsh plugin --profile  add https://github.com/avdergh/chroma-cut/releases/download/v0.1.3/dsh-chroma-cut-0.1.3.tgz
    
  • Local tarball: run pnpm pack in this directory, then:

    dsh plugin --profile  add ./dsh-chroma-cut-.tgz
    

Restart the profile. The bundle contributes a two-row layer:

  1. chroma-cut-runtime — resolves this package's launcher path and publishes it as the chromaCutRuntime service.
  2. chroma-cut-mcp — a @deepseek-ai/dsh-mcp-client row that starts the launcher over stdio and registers the server tools.

Verify the layer without starting the profile:

dsh --profile  --dump-config   # shows the "# == dsh-chroma-cut" layer

Runtime bootstrap

The launcher finds a Python 3.11+ interpreter, creates a dedicated venv under ~/.cache/chroma-cut-mcp/ (the same cache the Codex plugin uses), installs the pinned chroma-cut source there, and then runs the stdio MCP server. The first profile start after installation pays the one-time setup cost; later starts reuse the cached runtime. If the server process dies, the MCP bridge reconnects automatically.

Environment overrides:

  • CHROMA_CUT_PYTHON — exact Python 3.11+ interpreter to use.
  • CHROMA_CUT_SOURCE — pip spec replacing the pinned Git tag (for example a local checkout path during development).
  • CHROMA_CUT_RUNTIME_DIR — runtime venv directory.

Notes

  • MCP server commands run outside the agent sandbox; install this bundle only from sources you trust.
  • dsh ships @deepseek-ai/dsh-mcp-client as a built-in dependency, so this bundle adds no npm dependencies of its own.
  • The Python runtime is not bundled: users need Python 3.11+ on PATH (the same requirement as the CLI and the Codex plugin).

License

MIT. See LICENSE.