MCP server

VS Code

Add the Trame UI MCP server to VS Code, for GitHub Copilot's agent mode.

1. Add the server

Create .vscode/mcp.json in your project:

{
  "servers": {
    "trame": {
      "type": "http",
      "url": "https://mcp.trame-ui.com/mcp"
    }
  }
}

VS Code uses servers, not mcpServers. To use the server in every project, run MCP: Open User Configuration from the command palette and add the same entry there.

2. Sign in

  1. In mcp.json, click Start above the trame entry.
  2. VS Code asks to sign in: allow it.
  3. Your browser opens trame-ui.com. Sign in and allow VS Code.

3. Ask for a page

Open Copilot Chat in Agent mode. With your key in the project’s .env (see Your key), ask, for example:

Use Trame UI blocks to build a blog index page.

Sign out or remove

  • To sign out, open the Accounts menu (bottom left), pick the account used for trame, then Sign Out.
  • To remove the server, run MCP: List Servers, pick trame and remove it, or delete its entry from mcp.json.

Without a browser

On a Pro or Team account, you can send your project key instead of signing in. VS Code asks for it once and stores it securely:

{
  "inputs": [
    { "type": "promptString", "id": "trame-key", "description": "Trame UI key", "password": true }
  ],
  "servers": {
    "trame": {
      "type": "http",
      "url": "https://mcp.trame-ui.com/mcp",
      "headers": { "Authorization": "Bearer ${input:trame-key}" }
    }
  }
}