Skip to content

Add Component to Collection

Append a visible component to an owned collection. Existing clients may continue using the add_element_to_collection alias.

TOOLadd_component_to_collection
{
  "mcpServers": {
    "frontendforever": {
      "command": "npx",
      "args": [
        "-y",
        "frontendforever-mcp"
      ],
      "env": {
        "MCP_API_KEY": "<your_api_key>"
      }
    }
  }
}

Authorization

X-API-Keystringheaderrequired

Parameters

idrequired
string
Collection UUID
componentIdrequired
string
Component UUID
Request Preview
cURL
curl --request POST \
  --url 'https://frontendforever.com/api/mcp/collections/%3Cid%3E/components/%3CcomponentId%3E' \
  --header 'X-API-Key: <api-key>'

Example responses

Collections — page 1 of 1 (2 total)
- Dark Mode Buttons · ID: <uuid> · components: 8 · author: johndoe