Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:21st dev Magic mcp Brand Logo Retrieval

From Leeroopedia
Knowledge Sources
Domains Search, UI_Components
Last Updated 2026-10-19 16:40 GMT

Overview

A retrieval pattern that fetches a single company brand logo as a ready-to-paste JSX/TSX component, one brand per call.

Description

Brand logo retrieval is the act of looking up a company's logo and getting it back as a JSX/TSX component ready to drop into a React project. It addresses the limitation of hand-recreating brand SVGs (which is tedious, error-prone, and goes stale when the brand changes). The contract is one brand per call: querying multiple brands in a single request is not supported — call once per brand. The returned component is wired into the project like any other (see Principle:21st_dev_Magic_mcp_Component_Integration).

Usage

Use this principle when the user needs a company logo in JSX/TSX. Identify a single brand name from the user's request first, then call the retrieval tool once with that name.

Theoretical Basis

The core operation is a single-brand lookup:

# Abstract algorithm description (NOT real implementation)
brand = identify_single_brand(user_request)   # one name, not a list
logo  = search_logo(brand)                      # returns JSX/TSX component

The one-brand-per-call constraint is a contract of the tool, not a limitation of the caller — batching is achieved by multiple calls, not by a multi-brand query.

Practical Guide

  • Extract exactly one brand name from the user's request.
  • Call `search_logo` once with that single brand name.
  • Paste the returned JSX/TSX into the project; adapt imports/folders to conventions.

Related Pages

Implemented By

Notes

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment