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
- In
mcp.json, click Start above thetrameentry. - VS Code asks to sign in: allow it.
- 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
trameand remove it, or delete its entry frommcp.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}" }
}
}
}