DSH FigCraft Plugin: Controlling FigCraft Desktop Design App via MCP

Introduction

Agent developers often need to directly operate design software during the design phase, but existing solutions either can only passively read documents or require continuously running services that consume resources. DSH’s MCP framework supports on-demand server startup, and FigCraft also provides an attach-mode stdio MCP server. This plugin combines both, allowing the agent to launch FigCraft on demand, perform operations such as creating layers, running menu commands, taking screenshots, and reading/writing comments, then automatically shut it down when done.

Plugin Overview

madsouris/dsh-figcraft is a client plugin for DeepSeek Harness (DSH) that integrates the FigCraft desktop design application into DSH’s MCP agent system. The plugin communicates with FigCraft through a local control port, enabling on-demand startup and attach-mode control. The agent can invoke tools prefixed with mcp__figcraft__*.

Core Features

The plugin primarily provides the following capabilities:

  • On-demand control port management: FigCraft does not expose a control port by default. The plugin manages the application lifecycle via figon/figoff/figstat commands
  • Attach mode: The agent works within an already-open document, with operations visible in real time
  • MCP tools: Invoked via the mcp__figcraft__* prefix, including creating/editing layers, running menu commands, inspecting documents, taking screenshots, reading/writing comments, and more
  • Cross-platform support: macOS, Ubuntu/Debian, Fedora/RHEL, Arch, Windows, Linux AppImage, Linux Flatpak

Installation & Activation

The plugin itself is a DSH bundle. Before installation, you must first install the FigCraft application and its CLI.

macOS

brew install --cask figcraft
git clone https://github.com/madsouris/dsh-figcraft.git
cd dsh-figcraft
./scripts/install.sh --with-cli
echo 'source ~/.config/dsh-figcraft/aliases.sh' >> ~/.zshrc

Install the bundle in a DSH session:

plugin_manager install_bundle target=/absolute/path/to/dsh-figcraft

Ubuntu / Debian

curl -LO https://github.com/storytold/figcraft/releases/download/v0.18.1/figcraft-0.18.1-linux-x86_64.deb
sudo apt install ./figcraft-0.18.1-linux-x86_64.deb
git clone https://github.com/madsouris/dsh-figcraft.git
cd dsh-figcraft
./scripts/install.sh
echo 'source ~/.config/dsh-figcraft/aliases.sh' >> ~/.bashrc

Fedora / RHEL

curl -LO https://github.com/storytold/figcraft/releases/download/v0.18.1/figcraft-0.18.1-linux-x86_64.rpm
sudo dnf install ./figcraft-0.18.1-linux-x86_64.rpm
git clone https://github.com/madsouris/dsh-figcraft.git
cd dsh-figcraft
./scripts/install.sh

Arch Linux

curl -LO https://github.com/storytold/figcraft/releases/download/v0.18.1/figcraft-0.18.1-linux-x86_64.pkg.tar.zst
sudo pacman -U figcraft-0.18.1-linux-x86_64.pkg.tar.zst
git clone https://github.com/madsouris/dsh-figcraft.git
cd dsh-figcraft
./scripts/install.sh

Windows

git clone https://github.com/madsouris/dsh-figcraft.git
cd dsh-figcraft
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1

After installation, restart DSH. The tools will appear in the plugin list.

Linux AppImage

chmod +x FigCraft.AppImage
./scripts/install.sh --app /absolute/path/to/FigCraft.AppImage

Linux Flatpak

./scripts/install.sh
figon

Typical Usage

Starting and Stopping the Application

figon ~/Designs/MyApp.figcraft  # Start and open the specified file
figoff                           # Close the application
figstat                          # Show application status, control port, and CLI status

Using CLI Tools

figcli info       # Get application information
figcli export     # Export design
figcli render     # Render design
figcli run        # Run design

Startup Sequence

  1. Start FigCraft first:
   figon ~/Designs/MyApp.figcraft
  1. Then start or restart DSH so the plugin can discover the MCP server
  2. The agent can then invoke mcp__figcraft__* tools

Use Cases & Notes

Target Audience

  • Developers who need agents to directly operate design software
  • Those using FigCraft for UI/product design and looking to orchestrate workflows through DSH
  • Developers who prefer on-demand service startup and stop-on-use behavior

Important Notes

  • The plugin runs with the permissions of the current DSH process. Review the source code and license (MIT) before installation
  • Linux packages require glibc 2.35 or higher (Ubuntu 22.04+, Fedora 36+, Arch)
  • DSH must be restarted or a new session opened after FigCraft is launched, otherwise the MCP client may fail to connect
  • File access permissions must be correctly configured according to the operating system and sandboxing mechanism (e.g., Flatpak)

Summary

This plugin integrates the FigCraft desktop application into DSH via MCP, enabling on-demand startup and attach-mode control. The agent can invoke mcp__figcraft__* tools to perform design operations. After installation, use figon/figoff/figstat/figcli to manage the application. Refer to the GitHub repository for the full tool list.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye