Skip to content
Agents / MCP

Resources & prompts

Read resources, resolve templates, and fill reusable prompts.

Registry
Loading state

Server connection

disconnected

Direct connections stay in your browser. The endpoint must allow CORS. Use the optional server connector for private credentials.

Installation

  1. Add the registry entry to your app.

    npx shadcn@latest add @fabrials/resource-explorer

    Without the named registry, use the address: https://ui.fabrials.com/r/resource-explorer.json

API reference

Prop / exportTypeDescription
resources / templatesResource[] / ResourceTemplateType[]Discovered resources and URI templates.
onRead(uri) => Promise<unknown>Read a selected or fully expanded URI.
promptsPrompt[]Discovered prompt definitions.
onGet(name, args) => Promise<unknown>Resolve a prompt.

Behavior

Template input accepts a complete expanded URI. Missing capabilities remain explicit empty states.

Accessibility

Keyboard and contrast
Keep visible labels, keyboard focus and status announcements when customizing. These components inherit your theme; maintain sufficient contrast in both color modes. The preview is keyboard operable.