Using IconVectors with OpenCode

OpenCode can use IconVectors 2.30 to inspect and edit open SVGs, work with sprites, and export icons. Run the OpenCode CLI and IconVectors on the same Windows computer. OpenCode launches the bundled IconVectorsMcp.exe over stdio. The companion connects to the running IconVectors app over loopback. See MCP Integration for details about the connection and which app instance receives tool calls.

Configure the project

Start IconVectors 2.30 and open an SVG. In your OpenCode project folder, add the server to opencode.json, or merge it into your existing opencode.json or opencode.jsonc. Run opencode --version to choose the example for your OpenCode version.

OpenCode 2 puts local servers under mcp.servers.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "servers": {
      "iconvectors": {
        "type": "local",
        "command": [
          "C:\\Program Files\\Axialis\\IconVectors\\IconVectorsMcp.exe",
          "--port", "61337",
          "--profile", "medium"
        ]
      }
    }
  }
}

OpenCode 1 puts the server entry directly under mcp.

{
  "mcp": {
    "iconvectors": {
      "type": "local",
      "command": [
        "C:\\Program Files\\Axialis\\IconVectors\\IconVectorsMcp.exe",
        "--port", "61337",
        "--profile", "medium"
      ],
      "enabled": true
    }
  }
}

Use the absolute path to the installed companion. If you chose a different installation folder, update the path in command. Use the same port as the app if you changed it from 61337. Each argument has its own JSON string. For configuration locations and version differences, see the OpenCode MCP documentation and OpenCode 1 migration guide.

Check the connection and inspect an icon

From the project folder, run opencode mcp list and check that iconvectors shows as connected. In OpenCode 2 you can also enter /mcps, select iconvectors and connect it from there. If the server is missing, check that you started OpenCode in the folder containing your configuration. See the OpenCode server management guide.

Start an OpenCode session in the project folder with your configured model and try this read-only request.

Use IconVectors MCP. Run app_ping, then use document_getInfo to report
the active SVG's name and canvas size. Leave the document unchanged.

app_ping checks whether the companion reaches the desktop app. If it fails, check that IconVectors is open and that the configured port matches the app. Reconnect the MCP server or restart the OpenCode session after restarting IconVectors or changing the configuration.

To try an edit, select a shape in a sample SVG in IconVectors. Ask OpenCode to set only the selected shape’s fill to #2686D9 and leave the document unsaved. Inspect the result and use Edit ‣ Undo to revert the test edit.

For sprite and bitmap-tracing tools, change "medium" to "full" and reconnect. Open a sprite in IconVectors and ask OpenCode to use sprite_inspect to list its SVG IDs and report the active entry. See the MCP tool profiles for the available tools in each profile.

Optional workflow skill

Choose Help ‣ Open MCP Files Folder… in IconVectors and copy the iconvectors-mcp folder into .opencode/skills/ in your project. Keep SKILL.md and the references directory together. OpenCode discovers the skill at .opencode/skills/iconvectors-mcp/SKILL.md. See the OpenCode skills documentation.