Skip to main content

Tokenset Resources

Access tokensets and their tokens through MCP resources on the hosted server.
These resources are available on the hosted MCP server (/api/mcp). Use OAuth or a Bearer token to authenticate.

Resource URIs

Tokens in a Tokenset

Returns all tokens in a tokenset with resolved alias values.

JSON Export

Returns a DTCG/JSON export of the tokenset.

CSS Export

Returns CSS custom properties for the tokenset.

Example

Reading tokencraft://tokenset/{id}/tokens returns:

Workspace tokensets

To list tokensets in a workspace, use:
See Workspace Resources.

See Also