Col MCP for agents

Connect once, find a component, then implement from its official documentation.

Set up the connection

Give this prompt to an agent that can configure your coding client. Setup is complete when the client connects and lists all five Col tools.

Set up Col MCP for the coding client I use.
Read https://usecol.com/mcp for client-specific instructions.
Ask which client and configuration scope I want if they are unclear.
Add a server named col using Streamable HTTP at https://usecol.com/api/mcp.
Inspect the current configuration first. Preserve all existing servers and settings.
If Col is already configured directly or through its plugin, reuse that connection.
No credentials or authentication headers are needed.
Tell me if I need to restart the client or enable the server myself.
Confirm the connection lists search_libraries, search_components, get_library, get_component, and render_component.
If you cannot access the client’s tools, explain how I can verify them; do not claim the connection was tested.
Agent setup prompt

Find a fit

Inspect the project’s framework, styling, and existing components first. Call search_libraries with short keywords and hard filters. Every stack filter must match, including multiple frameworks; use-case filters match at least one selected use case. Exact library names and slugs rank first among eligible results.

{
  "query": "command menu",
  "stacks": [
    "React",
    "Tailwind CSS"
  ],
  "limit": 5
}
search_libraries arguments

Use returned slugs for library lookups. Read matchedComponents and evidence.gaps before choosing a candidate. Search calls accept limit from 1 to 25 and a non-negative offset; use total to decide whether another page is needed.

Both search tools accept queries up to 4,096 Unicode code points. Search matches keywords, not conversational requirements or negation: a query such as “no Tailwind” does not exclude Tailwind. Use structured filters and verify remaining requirements in the official docs. Omit or leave the library query blank to browse; component search requires a nonempty query.

Inspect the component

Call search_components with a documented name or alias. Optionally restrict the search to a library slug:

{
  "query": "command palette",
  "library": "shadcn-ui",
  "limit": 5
}
search_components arguments

Pass the exact returned ID to get_component, then use get_library for official setup links, pricing, documentation, and recorded compatibility. Col records no install commands of its own: read the current official docs before installing. Libraries that request outbound-only listings omit setup links.

{
  "id": "shadcn-ui/Command"
}
get_component arguments
{
  "slug": "shadcn-ui"
}
get_library arguments

When recorded, get_component.documentation.snapshots contains only that component’s permitted API declarations and readable usage examples. Library snapshots cover general setup. SolidJS examples report their pinned runtime; check each library’s compatibility rather than assuming Solid 1 and 2 are interchangeable. Quoin’s 40 public component and provider families include evidence for Solid 2 RC; see Solid 2 and Quoin for its requirements.

Component IDs are case-sensitive. Copy them from search results rather than constructing them. An unknown ID or invalid filter returns a tool error.

Render it in the chat

Inspect get_component.preview first. If available, call render_component with the exact component id, optional user CSS in styles, and a light or dark theme. Col runs the real pinned package export or original upstream source with its required CSS and providers. Source previews include their revision and integrity hash. The agent cannot supply replacement code, imports, or component props.

{
  "id": "mantine/Button",
  "theme": "dark",
  "styles": ".mantine-Button-root { border-radius: 0; }"
}
render_component arguments

This replaces the former code argument. Components without a verified implementation adapter return unavailable; do not substitute a generated imitation. Package versions, official documentation, and reproduction limits stay visible outside the styled frame. App data, fonts, routing, additional providers, and unsupplied CSS are not reproduced. A sent-to-chat result does not prove that the client rendered it.

Claude Code does not show MCP Apps. There, call render_component with format: "html" and show the returned html fragment: pass it unchanged to an inline HTML widget tool such as show_widget, or save it after a <!doctype html><meta charset="utf-8"> line as an .html file and open it in the browser. Errors in this fallback stay inside the render, so ask the user what they see.

The HTML fallback uses a sandboxed iframe that separates the library preview from its embedding document. Preserve the sandbox and resize script when embedding it. Large original media requires MCP Apps server-resource access and reports unavailable in standalone HTML. Packages still load over the network; this boundary does not establish the safety of every package or replace a client’s own isolation controls.

Use the evidence

  • Keep evidence.verification and evidence.gaps in the recommendation. A verified component link does not verify every API, dependency, or variant.
  • A missing component means it has not been recorded. Do not infer support from generic tags or treat an empty result as proof of absence.
  • Compatibility is supported, unsupported, or unknown. Keep unknown constraints explicit and verify them against official documentation.
  • Deep documentation snapshots may be absent. Follow the returned source URLs for current installation, API, examples, versions, and licensing.

Implement in the project

  • Read the chosen component’s official docs and confirm they fit the project’s versions and styling.
  • Read the library’s own setup docs before installing anything. Install only what the selected component needs and follow the project’s conventions.
  • Run the project’s relevant checks. Report the component, sources used, and anything that remains unverified.

Col supplies catalogue evidence. The coding agent performs project changes; the Col server does not read or modify the project.