> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokencraft.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Tokenset Resources

> Access tokenset data through MCP resources

# Tokenset Resources

Access tokensets and their tokens through MCP resources on the hosted server.

<Note>
  These resources are available on the **hosted MCP server** (`/api/mcp`). Use OAuth or a Bearer token to authenticate.
</Note>

## Resource URIs

### Tokens in a Tokenset

```
tokencraft://tokenset/{tokenset_id}/tokens
```

Returns all tokens in a tokenset with resolved alias values.

### JSON Export

```
tokencraft://tokenset/{tokenset_id}/export.json
```

Returns a DTCG/JSON export of the tokenset.

### CSS Export

```
tokencraft://tokenset/{tokenset_id}/export.css
```

Returns CSS custom properties for the tokenset.

## Example

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

```json theme={null}
{
  "tokens": [
    {
      "name": "colors.primary.500",
      "type": "color",
      "value": "#3b82f6"
    }
  ]
}
```

## Workspace tokensets

To list tokensets in a workspace, use:

```
tokencraft://workspace/{workspace_id}/tokensets
```

See [Workspace Resources](/mcp/resources/workspaces).

## See Also

* [Token Resources](/mcp/resources/tokens)
* [export\_tokenset tool](/mcp/tools/export-tokens)
