1. Add the server
Add trame to opencode.json, in your project or in OpenCode’s global config:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"trame": {
"type": "remote",
"url": "https://mcp.trame-ui.com/mcp"
}
}
}
If the mcp key already lists servers, add trame next to them.
2. Sign in
OpenCode asks you to sign in the first time it uses the server. You can also sign in ahead:
opencode mcp auth trame
Your browser opens trame-ui.com. Sign in and allow OpenCode.
3. Ask for a page
With your key in the project’s .env (see Your key), ask OpenCode, for example:
Build a contact page from Trame UI blocks.
Remove
Delete the trame entry from opencode.json.