Skip to Content
For AI & agentsMCP serverResources & prompts

Resources & prompts

Beyond tools, the StyleRef MCP server exposes resources (read-only data addressable by URI) and prompts (reusable interaction templates). This page lists both.

Resources

Resources are cheaper than tools for hosts that support them, and they give agents a browseable surface.

URIReturnsMIME
styleref://gallery/{slug}A public gallery style compiled to the default (prose) spectext/plain
styleref://gallery/{slug}/style.mdThe same style as a STYLE.md file bodytext/markdown
styleref://schemaThe StyleRef style schema — sections and block typesapplication/json

Read styleref://schema before authoring a style with create_style — it’s the source of truth for valid block types. See Tools reference.

The gallery resource template lists featured and recent styles (capped at 20), so a host can enumerate what’s available.

Own styles

When you’re connected with an account, your own private styles resolve anywhere a ref is accepted — including get_style, update_style, and publish_style — by their share slug or id. list_my_styles returns the ref to use for each, so you never have to construct one.

styleref:// URIs address the resources above, not styles — a tool’s ref parameter takes a share slug, a /share URL, or your own style’s id. The two are deliberately separate namespaces.

Interactive style cards

Hosts that support MCP Apps / mcp-ui get a rendered style card alongside the text, so a style arrives as a visual card with its palette rather than a wall of prose. Four tools attach one:

ToolCard
get_styleA full style card — palette, essence, attribution
search_stylesA compact list of the matches
list_my_stylesA compact list of your library
check_extraction_statusA card for the extracted draft

The card is a self-contained HTML document embedded in the tool result under a ui://styleref/… URI with mime type text/html, plus _meta markers (openai/outputTemplate, mcpui.dev/ui-resource) for host discovery.

The plain text always comes first. A host without the Apps extension sees exactly the text result it would have seen anyway, so nothing depends on card support — it’s additive.

Prompts

Prompts emit instruction messages that steer the model to the right tools.

use-style

Generate something while strictly following a chosen style.

ArgumentNotes
refThe style to apply.
requestWhat to generate (for example “a landing page hero headline”).

It instructs the agent to call get_style with a fitting format, then produce the request following the returned spec as a hard constraint.

pick-a-style

A guided discovery flow.

ArgumentNotes
disciplineCreative discipline (for example “poster design”). Optional.
moodDesired mood (for example “warm, editorial, calm”). Optional.

It asks a short question if discipline or mood is missing, calls search_styles, presents the top three candidates, and calls get_style on your choice.

setup-style-md

A coding-agent flow for pinning a project’s style.

ArgumentNotes
refThe style to write into the repo.

It instructs the agent to call get_style_md, write the result to STYLE.md in the project root, and add a reference line to AGENTS.md. See Add STYLE.md to a project.

Next steps

Last updated on