{"id":16141,"date":"2026-11-19T14:21:30","date_gmt":"2026-11-19T06:21:30","guid":{"rendered":"https:\/\/imastudio.com\/?p=16141"},"modified":"2026-11-19T14:22:22","modified_gmt":"2026-11-19T06:22:22","slug":"add-imastudio-to-vs-code-mcp","status":"publish","type":"post","link":"https:\/\/imastudio.com\/zh_tw\/blog\/add-imastudio-to-vs-code-mcp","title":{"rendered":"\u5982\u4f55\u5c07 ImaStudio \u6dfb\u52a0\u5230 VS Code \u4e26\u751f\u6210\u8996\u983b"},"content":{"rendered":"<p>To use ImaStudio in VS Code, run <strong>MCP: Add Server<\/strong> from the Command Palette, choose HTTP, enter ImaStudio&#8217;s server URL, approve the sign-in in your browser, then ask VS Code&#8217;s chat agent to list the video models and make a clip. This guide gives the steps, the config file formats, how to check it worked, and what to ask first.<\/p>\n<p>VS Code doesn&#8217;t make video itself. Its chat agent calls ImaStudio&#8217;s tools, which run video models on your ImaStudio points.<\/p>\n<p style=\"margin:1.8em 0\"><a href=\"https:\/\/www.imastudio.com\/mcp\" style=\"display:inline-block;background:#111;color:#fff;font-weight:700;text-decoration:none;padding:14px 22px;border-radius:6px;line-height:1.2\">Add ImaStudio to VS Code<\/a><\/p>\n<h2>What you need<\/h2>\n<ul>\n<li>An ImaStudio account with points. Every generation costs points, and the next sections show how to check the price first.<\/li>\n<li>VS Code with its AI chat features enabled. VS Code&#8217;s docs list three steps: enable AI features, open a local project folder, and select <strong>Copilot<\/strong> in the Session Target dropdown.<\/li>\n<li>A browser on the same computer, because the sign-in happens there.<\/li>\n<li>On a work account, your organization&#8217;s policy can affect MCP servers and sign-in, according to VS Code&#8217;s docs.<\/li>\n<\/ul>\n<h2>Add ImaStudio with the guided setup<\/h2>\n<ol>\n<li>Open the Command Palette and run <strong>MCP: Add Server<\/strong>.<\/li>\n<li>Choose <strong>HTTP (HTTP or Server-Sent Events)<\/strong>.<\/li>\n<li>Enter <code>https:\/\/api.imastudio.com\/mcp<\/code>. Copy it from ImaStudio&#8217;s connection page, which has a VS Code tab. If that page&#8217;s instructions differ from this guide, follow the page.<\/li>\n<\/ol>\n<p>You can reach the same place another way: run <strong>Chat: Open Customizations<\/strong>, open <strong>MCP Servers<\/strong> and choose <strong>Add Server<\/strong> (the + button) in the User group.<\/p>\n<figure style=\"max-width:420px;margin:1.6em auto\"><img fetchpriority=\"high\" decoding=\"async\" width=\"720\" height=\"1060\" class=\"wp-image-16138\" src=\"https:\/\/imastudio.com\/wp-content\/uploads\/2026\/11\/vscode-add-imastudio-steps.png\" alt=\"Vertical diagram of four steps for adding ImaStudio to VS Code: add the server, sign in, check the tools, ask for a video\" style=\"width:100%;height:auto;display:block;border-radius:4px\" srcset=\"https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/vscode-add-imastudio-steps.png 720w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/vscode-add-imastudio-steps-204x300.png 204w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/vscode-add-imastudio-steps-696x1024.png 696w, https:\/\/wpcdn.imastudio.com\/wp-content\/uploads\/2026\/11\/vscode-add-imastudio-steps-8x12.png 8w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><figcaption style=\"font-size:.85em;line-height:1.5;color:#666;margin:.5em 0 0\">Illustration, not a screenshot.<\/figcaption><\/figure>\n<h2>The config file it writes<\/h2>\n<p>VS Code&#8217;s docs describe two formats, and which one you get depends on the setup you use. The portable format uses <code>mcpServers<\/code> and lives in <code>~\/.copilot\/mcp-config.json<\/code> for you, or in <code>.mcp.json<\/code> at the workspace root, which needs the experimental setting <code>chat.mcp.workspaceRootConfig.enabled<\/code>:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>{\n  \"mcpServers\": {\n    \"ima\": {\n      \"type\": \"http\",\n      \"url\": \"https:\/\/api.imastudio.com\/mcp\",\n      \"tools\": [\"*\"]\n    }\n  }\n}<\/code><\/pre>\n<p>The older editor-managed format, which the docs mark as deprecated for new setups, uses <code>servers<\/code> in <code>.vscode\/mcp.json<\/code>:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>{\n  \"servers\": {\n    \"ima\": {\n      \"type\": \"http\",\n      \"url\": \"https:\/\/api.imastudio.com\/mcp\"\n    }\n  }\n}<\/code><\/pre>\n<p>Use whichever file the guided setup wrote, and don&#8217;t mix the two.<\/p>\n<h2>Sign in<\/h2>\n<p>Complete the authorization when VS Code prompts you. If you miss the prompt, look for <strong>Authenticate<\/strong> in the server&#8217;s actions. Review any trust request before you accept it, and never paste credentials into the chat.<\/p>\n<p>ImaStudio&#8217;s approval screen lists what you&#8217;re allowing. When we approved Codex, it said the app could view your canvases, create canvases and add, edit and delete nodes on them, and use your points to generate images, videos and audio. You can revoke access later in Settings \u2192 Connected apps.<\/p>\n<p>For a pre-registered OAuth client, the portable format takes a flat <code>oauthClientId<\/code> field. ImaStudio&#8217;s Claude Code and Codex setups use the IDs <code>claude-code-ima<\/code> and <code>codex-ima<\/code>, but we haven&#8217;t seen one published for VS Code, so use the default sign-in.<\/p>\n<h2>Check that it works<\/h2>\n<ol>\n<li>Run <strong>MCP: List Servers<\/strong> to open the server controls and confirm ImaStudio is there.<\/li>\n<li>In chat, ask a question before you ask for a video:<\/li>\n<\/ol>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>Which video models can you use through ImaStudio? For each one, tell me the durations and aspect ratios it supports.<\/code><\/pre>\n<p>A list of models means it works. If the tools look out of date, run <strong>MCP: Reset Cached Tools<\/strong>. To turn the server off, open <strong>Chat: Open Customizations<\/strong> &gt; <strong>MCP Servers<\/strong> and use the ellipsis menu to disable or uninstall it. The docs we read don&#8217;t say where server logs appear.<\/p>\n<h2>Make your first clip<\/h2>\n<p>VS Code chooses the relevant tools on its own, and you can expand a tool call in the conversation to inspect it. Name the model, the length and a spending limit:<\/p>\n<pre style=\"background:#f6f7f9;border-left:3px solid #111;border-radius:4px;padding:14px 16px;margin:1.6em 0;font-size:.9em;line-height:1.6;white-space:pre-wrap;word-break:break-word\"><code>Using ImaStudio, make one 5-second 16:9 video with Seedance 2.5 at 720p. Show me the price first and stop if it's over 250 points. Scene: a slow dolly-in on a steaming cup of coffee on a wooden table beside a rainy window, warm light, shallow depth of field, no people, no text.<\/code><\/pre>\n<p>The settings, the price of each resolution and a real run are in our guide to <a href=\"https:\/\/imastudio.com\/blog\/use-seedance-2-5-in-claude-imastudio\">use Seedance 2.5 with ImaStudio<\/a>. The server and its tools are the same in VS Code.<\/p>\n<h2>Using it with your project files<\/h2>\n<p>When a file from your project goes in or a video file has to come out, the ImaStudio CLI is an option. We tested that route with Codex, not VS Code. See how to <a href=\"https:\/\/imastudio.com\/blog\/generate-ai-videos-in-codex-imastudio\">turn a local image into a video with Codex and the ImaStudio CLI<\/a>.<\/p>\n<h2>Three things to watch<\/h2>\n<ul>\n<li><strong>Set a spending limit<\/strong> in your prompt, as above.<\/li>\n<li><strong>Keep deletes deliberate.<\/strong> The server can delete nodes and whole canvases, so read each approval request.<\/li>\n<li><strong>Expect the menus to move.<\/strong> VS Code&#8217;s MCP documentation currently describes two setups. If a command here doesn&#8217;t match your version, trust the editor and its docs.<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<h3>Do I need an API key?<\/h3>\n<p>ImaStudio&#8217;s connection page says you sign in with your account in the browser and no key is pasted into the chat. You still need an account with points.<\/p>\n<h3>Which VS Code version do I need?<\/h3>\n<p>The pages we read don&#8217;t name a minimum version. Use a current release.<\/p>\n<h3>Do I need a chat subscription?<\/h3>\n<p>The agent that calls ImaStudio is VS Code&#8217;s chat, so it has to be available to you. Plans and availability are VS Code&#8217;s and GitHub&#8217;s to answer.<\/p>\n<h3>How much does a video cost?<\/h3>\n<p>It depends on the model, the length and the resolution. The price list and a 5-second table are in our Seedance 2.5 guide, and the request above sets a limit.<\/p>\n<h2>Where to go next<\/h2>\n<p>For the same setup in a chat app, see <a href=\"https:\/\/imastudio.com\/blog\/generate-ai-videos-in-claude-imastudio\">how to generate AI videos in Claude with ImaStudio<\/a>. For the model&#8217;s settings and prices, see how to <a href=\"https:\/\/imastudio.com\/blog\/use-seedance-2-5-in-claude-imastudio\">use Seedance 2.5 with ImaStudio<\/a>. Using Cursor instead? See how to <a href=\"https:\/\/imastudio.com\/blog\/add-imastudio-to-cursor-mcp\">add ImaStudio to Cursor<\/a>.<\/p>\n<p style=\"margin:1.8em 0\"><a href=\"https:\/\/www.imastudio.com\/mcp\" style=\"display:inline-block;background:#111;color:#fff;font-weight:700;text-decoration:none;padding:14px 22px;border-radius:6px;line-height:1.2\">Add ImaStudio to VS Code<\/a><\/p>\n<p style=\"font-size:.85em;color:#666\">How this guide was put together: the VS Code steps follow VS Code&#8217;s documentation as we read it on November 19, 2026, and the ImaStudio details come from its server and connection page. We haven&#8217;t run VS Code ourselves, so menu names may differ in your version. The cover was made in ImaStudio.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 MCP \u5c07 ImaStudio \u65b0\u589e\u81f3 VS Code \u4e2d\u4f5c\u70ba MCP \u4f3a\u670d\u5668\uff1a\u65b0\u589e\u4f3a\u670d\u5668\uff0c\u6279\u51c6\u700f\u89bd\u5668\u767b\u9304\uff0c\u6aa2\u67e5\u662f\u5426\u6b63\u5e38\u904b\u4f5c\uff0c\u4e26\u8981\u6c42\u7b2c\u4e00\u500b\u5f71\u7247\u3002.<\/p>","protected":false},"author":1,"featured_media":16136,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Add ImaStudio to VS Code: MCP Setup for AI Video","rank_math_description":"Add ImaStudio to VS Code as an MCP server with MCP: Add Server, approve the browser sign-in, check it works and ask for a first video.","footnotes":""},"categories":[49],"tags":[21,51],"class_list":["post-16141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tools-models","tag-ai-video","tag-type-guides"],"_links":{"self":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/16141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/comments?post=16141"}],"version-history":[{"count":2,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/16141\/revisions"}],"predecessor-version":[{"id":16144,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/posts\/16141\/revisions\/16144"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/media\/16136"}],"wp:attachment":[{"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/media?parent=16141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/categories?post=16141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imastudio.com\/zh_tw\/wp-json\/wp\/v2\/tags?post=16141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}