Skip to content
Onefold
Get startedPlaygroundDocumentation

Agent ready

What an agent can run

The registry JSON and the local script are real. The script can answer two tools over stdio. There is no hosted MCP server, and no model is connected.

Stdio only, nothing hosted

There is no hosted MCP server, no installable package, and no live model. npm run onefold -- mcp speaks MCP on stdin in this repository. A local check of initialize, tools/list, and tools/call returned list_components and show_tokens. That is the whole protocol this script implements.

  1. Scaffold a project

    Copy src/design-system into the other app, then download the CSS and JSON for the theme in the editor. The handoff page does that download.

    Open design to code
  2. Discover components

    The catalog has 126 components. Search them on the components page, or read the same list from the registry.

    Browse componentsOpen /registry
  3. Browse templates

    Dashboard, enterprise, AI experience, and form each open in the playground.

    Open templates
  4. Generate themes

    The theme studio edits the live theme. This page can copy the CSS and JSON for Blue app. Saving a named copy stays in this browser.

    Theme studio
  5. Retrieve documentation

    Foundations describe color, type, space, and focus. Each component page shows that component.

    FoundationsButton
  6. Use the local script

    Run these from the repository root. list prints slug, name, and summary. tokens prints light and dark values for sable, kiln, grove, or ink. registry prints the same JSON as /registry. There is nothing to install.

    npm run onefold -- list
    npm run onefold -- tokens grove
    npm run onefold -- registry
    npm run onefold -- mcp

Registry preview

Full JSON

126 components from src/design-system/catalog.ts. The block below is the start of that registry, read in this page from the same function that serves /registry.

{
  "name": "onefold",
  "version": "2.0.0",
  "source": "src/design-system/catalog.ts",
  "componentCount": 126,
  "components": [
    {
      "slug": "button",
      "name": "Button",
      "playground": true
    },
    {
      "slug": "input",
      "name": "Text field",
      "playground": true
    },
    {
      "slug": "textarea",
      "name": "Text area",
      "playground": true
    },
    {
      "slug": "checkbox",
      "name": "Checkbox",
      "playground": true
    },
    {
      "slug": "switch",
      "name": "Switch",
      "playground": true
    },
    {
      "slug": "tabs",
      "name": "Tabs",
      "playground": true
    },
    {
      "slug": "badge",
      "name": "Badge",
      "playground": true
    },
    {
      "slug": "avatar",
      "name": "Avatar",
      "playground": true
    }
  ],
  "themes": [
    "Blue app",
    "Shop",
    "Health notes",
    "Editorial"
  ]
}

designed and built by Divyaray