Microsoft and GitHub · imagic Max

將 imagic 連接到 VS Code 和 GitHub Copilot

把 imagic 加進 VS Code,讓 Copilot 的代理模式可以替你的照片選片、編輯與匯出。一行指令,或是帶有 servers 鍵的 JSON 區塊。

1安裝 imagic 並開始試用

MCP 伺服器隨 imagic Max 提供,500 次匯出的免費試用會解鎖所有功能,無需信用卡。請先從桌面版頁面下載,因為 VS Code and GitHub Copilot 需要有東西可以對話。

2把 imagic 加入 VS Code and GitHub Copilot

這會幫你寫好設定,避開下面提到的鍵名錯誤。

code --add-mcp "{\"name\":\"imagic\",\"command\":\"imagic-mcp\"}"

設定

VS Code and GitHub Copilot 會讀取 .vscode/mcp.json。 最上層的鍵是 servers,不是大多數其他用戶端使用的 mcpServers 鍵。

{
  "servers": {
    "imagic": {
      "type": "stdio",
      "command": "imagic-mcp"
    }
  }
}

從本站安裝的是打包版應用程式嗎?那麼你的電腦上不會有 imagic-mcp 指令:應用程式本身就是伺服器。讓 command 指向它,並傳入 --mcp(此處以 Windows 為例;在 macOS 上,指令是 /Applications/imagic.app/Contents/MacOS/imagic):

{
  "servers": {
    "imagic": {
      "type": "stdio",
      "command": "C:\\Program Files\\imagic\\imagic.exe",
      "args": ["--mcp"]
    }
  }
}

那個檔案在哪裡

所有平台.vscode/mcp.json (workspace)

在介面中哪裡找

Command Palette → MCP: Add Server,或是想整台電腦都安裝時,用 MCP: Open User Configuration。

3請它選片

如果 VS Code and GitHub Copilot 已經在執行,請重新啟動它,然後讓它指向一場拍攝:

幫我替 D:/Shoots/eva_tom 裡的拍攝選片,套用我的風格,並匯出留用的照片。

VS Code and GitHub Copilot 會依序呼叫 scan_directory、analyze_photos、apply_my_style 和 export_photos。這些全都在你的電腦上執行:代理傳送的是指令,絕不是你的照片。

容易讓人踩雷的地方

連上之後 imagic 能做什麼

scan_directory analyze_photos apply_my_style export_photos

總共有 30 個工具,涵蓋相片庫、選片、編輯與你學到的風格。請見完整工具參考,或參考工作流程,看看實際上該提出什麼要求。

要設定其他用戶端嗎?

Codex CLI Gemini CLI Windsurf (Devin Desktop) Zed Continue Goose

用一場真實的拍攝試試

500 次匯出的試用包含 imagic Max、MCP 伺服器以及本頁的每個工具。無需信用卡。

設定已對照 Microsoft and GitHub 的文件驗證。如果 VS Code and GitHub Copilot 更改了設定方式而本頁沒跟上,請告訴我們,我們會修正。