> ## Documentation Index
> Fetch the complete documentation index at: https://docs.0mcp.io/llms.txt
> Use this file to discover all available pages before exploring further.

# VS Code

> Connect your published 0mcp server to VS Code.

Publish a server version, open **Setup**, and select **VS Code**.

<Steps>
  <Step title="Copy the configuration">Copy the server entry generated by 0mcp.</Step>
  <Step title="Add it to the project">Open or create `.vscode/mcp.json`, then merge the entry with any servers already in the file.</Step>
  <Step title="Start the server">Run **MCP: List Servers** from the Command Palette and start your 0mcp server.</Step>
  <Step title="Enter credentials">VS Code asks for the secure values defined in the configuration. Enter the upstream API credential when prompted.</Step>
</Steps>

Do not replace the whole file if it already contains other servers. If VS Code does not prompt again after a credential changes, stop and restart the MCP server.

<Note>
  VS Code requests secure credential values when the server starts. Do not write those values directly into `.vscode/mcp.json`.
</Note>
