Skip to the page
Tactile UI

Install with shadcn, and the docs MCP

Every object and block is in a registry that the shadcn CLI reads, and the docs answer agents over MCP. Your agent installs a piece instead of writing one.

On this page
  1. The docs, for your agent
  2. Install a free piece
  3. Install what your Pass opens
  4. Call it directly

The docs, for your agent

From Claude's connector directory (one click): press Add to Claude, then connect Tactile UI.

Add to ClaudeAdd to CursorInstall in VS Code

https://tactileui.dev/mcp

Claude, as a custom connector: open Settings, then Connectors, then Add custom connector, paste the address above, and sign in.

Claude Code:

claude mcp add --transport http tactile https://tactileui.dev/mcp

The docs are an MCP server at https://tactileui.dev/mcp, read-only: search the docs, read a page, list the pieces, and get a piece's code. It works with a free account, one click.

The first time your app connects, a Tactile UI page opens in your browser. Sign in with Google or GitHub (a new account is made on the way, free), then press Allow. That's it: there is no token to copy. The app reads the docs as your account sees them, and gets the code of every piece your account opens: the free pieces for everyone, and every object and block with a Pass.

A free account has 30 calls and 5 different pieces a day, to try it. To build with it, a Pass has 500 calls and 50 different pieces a day. Both reset at midnight UTC, and taking a piece again the same day is free. Fetching a Pass piece's code through the MCP counts as a download, as installing it does. Your account page lists the apps you connected, with a Disconnect key for each.

From Claude's connector directory (one click): open Tactile UI in the directory, press Add, then sign in.

Claude (the app or claude.ai), as a custom connector: open Settings, then Connectors, and choose Add custom connector. Name it Tactile UI, paste https://tactileui.dev/mcp, then press Connect and sign in.

Claude Code:

claude mcp add --transport http tactile https://tactileui.dev/mcp

Then run /mcp in Claude Code, choose tactile and sign in.

Cursor, in .cursor/mcp.json:

{ "mcpServers": { "tactile": { "url": "https://tactileui.dev/mcp" } } }

Then open Cursor Settings, MCP, and press Connect beside tactile.

VS Code, in .vscode/mcp.json:

{ "servers": { "tactile": { "type": "http", "url": "https://tactileui.dev/mcp" } } }

Then press Start above the server in that file, and allow the sign-in when VS Code asks.

Codex:

codex mcp add tactile --url https://tactileui.dev/mcp

A Tactile UI page opens in your browser. If it doesn't, run codex mcp login tactile.

Then ask for a piece by what it should do, and the agent finds it, reads its page and installs it.

Install a free piece

No account, no setup. The six free pieces are in the shadcn directory under @tactile:

npx shadcn add @tactile/odometer

The others are @tactile/compass, @tactile/pull-cord, @tactile/client-plates, @tactile/machined-footer and @tactile/faq-drawer. The full address works too: npx shadcn add https://tactileui.dev/r/odometer.json. Fonts load from tactileui.dev until you put the piece's own font files next to its stylesheet.

The piece lands in tactile/odometer/ (inside src/ when the project has a src/ folder, so src/tactile/odometer/ in a Vite app): its class and its stylesheet, with tactile/odometer-example.html beside the folder: the page that runs it. The list of everything is at /r/registry.json.

Load the stylesheet as well as the class, or the piece renders unstyled. In Vite or any bundler:

import './tactile/odometer/odometer.css';
import Odometer from './tactile/odometer/odometer.mjs';

new Odometer(document.getElementById('counter'), { value: 1100 });

The pieces are plain JavaScript. In a TypeScript project (the default Vite React template), tell TypeScript once, or npm run build stops with TS7016: add declare module '*.mjs'; to src/vite-env.d.ts.

The registry holds the objects and blocks. Kit parts and templates are not on the CLI: they come in the kit download, as kit.css and kit.mjs.

The shadcn CLI needs a package.json and a components.json in the project even for this. An empty folder has neither: make a package.json ({"name":"my-app","private":true} is enough), then the components.json and the jsconfig.json from the next section; the registries part of it is only for Pass pieces.

Install what your Pass opens

Make a token on your account and keep it in your environment, never in the repository. In a shell on macOS or Linux:

export TACTILE_TOKEN=tui_pat_…

and in PowerShell on Windows:

$env:TACTILE_TOKEN = "tui_pat_…"

If an agent does the install, tell it to check the token is set without printing it (test -n "$TACTILE_TOKEN"), and never to echo it or paste it into a command, so it stays out of its logs.

Then name the registry once in components.json, at the root of your project. shadcn will not install anything without one, and a fresh project has none, so this is the whole file to make; the registries part is Tactile's, the rest is what shadcn needs and does not use here:

{
  "$schema": "https://ui.shadcn.com/schema.json",
  "style": "new-york",
  "tailwind": { "css": "src/index.css", "baseColor": "neutral", "cssVariables": true },
  "aliases": { "components": "@/components", "utils": "@/lib/utils" },
  "registries": {
    "@tactile": {
      "url": "https://tactileui.dev/r/{name}.json",
      "headers": { "Authorization": "Bearer ${TACTILE_TOKEN}" }
    }
  }
}

shadcn also reads the @/ alias from jsconfig.json (or tsconfig.json). A fresh Vite app has neither, and shadcn stops with "Couldn't find tsconfig.json". Add this next to components.json:

{ "compilerOptions": { "baseUrl": ".", "paths": { "@/*": ["./src/*"] } } }

Install by name:

npx shadcn add @tactile/pin-screen

A token opens what your account owns now, checked on every request. Stop one on your account page and it stops at once. Installing a piece hands over its code, so on a Pass with the 14-day refund it counts as a download.

Fonts are binary files, which a registry item cannot carry. The install says which ones a piece uses; they come with its download on its page.

Call it directly

MCP over HTTP: one JSON-RPC message in a POST, one JSON answer back. The hosted server answers a signed-in client, which sends its access token as Authorization: Bearer …; without one, the answer is 401. There is no token to copy: the client gets it when you sign in.

A tools/list request, and a tools/call that searches the docs:

curl -s https://tactileui.dev/mcp \
  -H 'content-type: application/json' \
  -H 'authorization: Bearer …' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

curl -s https://tactileui.dev/mcp \
  -H 'content-type: application/json' \
  -H 'authorization: Bearer …' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_docs","arguments":{"query":"knob"}}}'

The same in PowerShell:

$headers = @{ authorization = "Bearer …" }

$list = '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Invoke-RestMethod -Uri https://tactileui.dev/mcp -Method Post -ContentType "application/json" -Headers $headers -Body $list

$call = '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"search_docs","arguments":{"query":"knob"}}}'
Invoke-RestMethod -Uri https://tactileui.dev/mcp -Method Post -ContentType "application/json" -Headers $headers -Body $call