Skip to content
VS Code

c2n Web Components for VS Code

io.github.code2nguyen/c2n

Exact APIs, examples, theme tokens and markup validation for the c2n (c2-*) Lit web components.

client:VS Code transport:stdio runtime:npm

Install c2n Web Components in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "c2n-project-root",
      "description": "C2N_PROJECT_ROOT",
      "password": true
    }
  ],
  "servers": {
    "c2n": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@c2n/mcp"
      ],
      "env": {
        "C2N_PROJECT_ROOT": "${input:c2n-project-root}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

c2n Web Components in other clients