Imagine With Craft

Come connettere Craft al Visual Studio Code con MCP

Puoi abilitare un server MCP per i tuoi documenti, permettendo a Visual Studio Code di interagire direttamente con i tuoi contenuti. Questa guida ti accompagna nella configurazione della connessione tra Craft e Visual Studio Code tramite MCP.

Craft
Visual Studio Code

Adding an MCP Connector in Visual Studio Code

Create a new connector in Visual Studio Code and use the MCP URL to connect the two services.

Step 1

Go to Visual Studio Code’s MCP Settings by typing >mcp in the command palette and selecting “MCP: Open User Configuration”

Step 2

Copy the following MCP configuration and paste it into the MCP configuration file in Visual Studio Code. Replace craft with a descriptive name for your MCP server. Replace <MCP_URL> with the MCP URL.
{ "servers": { "craft": { "url": "https://mcp.craft.do/my/mcp" } } }

Step 3

Save the MCP configuration file. It should look something like this example. Press the “Start” button to start the MCP server.

Step 4

Si aprirà una finestra del browser con la pagina di autorizzazione di Craft. Seleziona lo spazio a cui desideri connetterti e clicca su "Approva" per concedere l'accesso.

You can now ask Visual Studio Code about your documents, and even have them updated. Try something like this to get started:

Click an example to copy the prompt to your clipboard

Some Ideas to Get You Started

Browse Examples