The CLI stops with one line and exit code 1 (130 when you cancelled). Each line below is quoted as printed.
Tokens and plans
| Line | Means | Do |
|---|---|---|
Project token not recognised. In the workbench open Project settings and copy the project token. |
The server answered 401. | Copy the token again; it may have been regenerated. |
A project token is required. In the workbench open Project settings and copy the project token. |
In a terminal, no token was given and none is saved for this folder. | Pass --token, set DS_SYNC_TOKEN, or run connect here. |
No design system is connected to this folder. Ask the user to run npx designsource in a terminal in this folder, then run this command again. Do not paste a project token into a command. |
add, create or integrate ran outside a terminal (an agent's shell, a script) and found no token, saved token or account link. add --yes never reads stdin. |
Run npx designsource (or connect) in a terminal in this folder once, or set DS_SYNC_TOKEN from a secret store; see For coding agents. |
A design system is connected to this folder, but its token is in this computer's keychain and this shell cannot read it (a sandbox may block it). Ask the user to run npx designsource --store file in a terminal in this folder, then run this command again. |
A token is saved for this folder, in the macOS keychain, the Secret Service or DPAPI, and this process could not read it: most often a coding agent's sandboxed shell. | Run npx designsource --store file in a terminal in this folder once: it moves the token into the private credentials file, which the agent's shell can read. |
designsource has no project token or sign-in here. Ask the user to run npx designsource login in a terminal in the project folder, then restart this app. The server runs on this computer over stdio; there is no web address to connect to instead. |
mcp started with no --project, no token and no sign-in for this folder. |
Run login (or connect) in the project, then restart the app. |
designsource is not signed in for <folder>. Ask the user to run npx designsource login in a terminal in that folder, then restart this app. A sign-in there also covers its git worktrees. |
The account path, in a folder no login covers. |
Run login in that folder, then restart the app. |
This project's account is on the free plan. Exports need Pro: https://designsource.app/pricing |
The server answered 402. | Exports need Pro on the project owner's account. |
This design system needs a newer designsource CLI. Update it (for example npx designsource@latest) and run again. |
The server sent a manifest this version does not know. | Run npx designsource@latest. |
This computer is no longer signed in to designsource (revoked or expired). Run npx designsource login in a terminal. |
The account sign-in was refused. | Run login again. |
The linked design system is gone (deleted, or not in this account). Call list_design_systems, then use_design_system. |
The folder's linked project is no longer in the account. | Have the agent pick another. |
The design system linked to this folder is gone (deleted, or no longer in your account). Ask your coding agent to link another one, or pass --token with a project token. |
add, create or integrate used the folder's account link, and its project is gone. |
Have the agent link another, or pass --token. |
This folder's designsource sign-in was saved for <origin>, so designsource will not send it to <other>. Pass --token for that server, or leave out --api. |
add, create or integrate would use the folder's account link, and --api names another server. |
Leave out --api, or pass --token for that server. |
Using the design system linked to this folder (signed in as <email> on <origin>). |
Not an error: the verb took the folder's account link. | Pass --token to use another design system. |
No more input. Pass the answer as a flag (for example --token or DS_SYNC_TOKEN) when running without a terminal. |
A prompt ran out of input in a script. | Pass the answer as a flag. |
setup
| Line | Means | Do |
|---|---|---|
DS source supports React apps only for now. Vue, Svelte, Angular and plain CSS are coming later. |
setup found another stack. It stops before signing in or writing anything. |
Run it in a React app; see React only for now. |
setup asks questions, so it needs a terminal. In a script, use add, connect or login. |
setup ran outside a terminal. |
Run it in a terminal, or name the verb you need. |
This is a workspace root. Run npx designsource in the app's own folder (apps/web, say). |
setup ran at a monorepo root with no React of its own. |
Run it in the app's folder. |
This folder is neither a repository nor an app. Run npx designsource in your app's folder. |
The folder has files but no .git and no package.json. |
Run it in the app's folder. |
Still waiting? Run npx designsource again once your design system is saved. |
The wait for a new design system ran out. | Save it in the browser, then run again. |
No coding apps found on this computer. Run npx designsource login --apps claude (or cursor, vscode, codex, gemini) to set one up. |
No coding app was detected, so no settings file was written. | Run login with the app you use. |
Still on the free plan. After upgrading, run npx designsource again. |
The wait after Upgrade to Pro now ran out before Pro was on. |
Finish subscribing, then run again. |
Free plan: the kit was not added to this app. (or the design system files were not added, the app was not created) |
Exports need Pro. | Upgrade at the Upgrade link it prints, then run npx designsource again. |
add
| Line | Means | Do |
|---|---|---|
--blocks and --no-blocks cannot be used together. |
Both flags on one run. | Pick one. |
No blocks were added: they go into the /design-system section, which only a run with every component writes. Run designsource add --blocks with no component names. |
--blocks on a run that wrote no section. |
Rerun without component names. |
No package.json here. Run this in your React app's folder. |
add runs in the app's folder. |
cd into the app. |
This folder has no React app. Run this in your React app's folder. DS source supports React apps only for now. |
package.json names no React. |
Run in the React app. Other stacks are not supported yet. |
The UI kit is TypeScript and this app is plain JavaScript, so it cannot go in yet. |
The kit ships as TypeScript. | Add TypeScript to the app first. |
These files exist and were not added by designsource: <paths>. Pass --force to replace them. |
--yes or no terminal, and files designsource did not write are in the way. |
Rerun with --force, or move them. |
Unknown component(s): <names>. Run without names to pick from the list. |
A name is not a kit component. | Check the names, or run without them. |
Unknown component(s): <names>. or No components given. |
The Pick some… list named nothing usable, twice. |
Type names from the list, comma-separated. |
<file> does not exist. components.json names it as the app's stylesheet (tailwind.css); create it or fix the path, then run this again. |
The stylesheet components.json names is missing. |
Create it or fix the path. |
Installing libraries failed. The files were written; run this to finish: <command> |
The files are in place but the install failed. | Run the command it names. |
The UI kit needs React 19 — this app is on React 18. |
The kit passes refs as props, which React 18 drops. | Upgrade the app to React 19. |
Nothing was changed. Run again and answer yes to replace them, or remove those files first. |
You declined to replace files designsource did not write. | Answer yes, pass --force, or move the files. |
The /design-system section comes with the full kit: run designsource add --all. |
A run with names or Pick some… writes no section. |
Run with --all. |
This Next.js app uses the Pages Router; the /design-system section needs the App Router, so it was skipped. |
The section is a route folder under app/. |
The components are in; the section needs the App Router. |
No screen named "x" in <project>. Its screens: … (No screens named "x", "y" for several; It has no screens yet. when there are none) |
--screen named a screen the project does not have. |
Use a file name from the list in the line, or from the Add to app command. |
This screen's current version can't be built. Pick another version in DS source. |
The screen's stored version is not a valid plan. | Pick another version on the Pages & screens page. |
Skipped screen "x": you edited screens/parts/<part> and the kit's version has changed since. Run again with --force to replace it. |
A part you edited changed in the kit. | Rerun with --force, or keep the screen as it is. |
Skipped screen "x": you edited <file> and the kit has since changed the file beside it, so they would no longer fit together. Run again with --force to replace both. |
You edited a screen or its data file, and the kit changed the other one. | Rerun with --force, or keep the screen as it is. |
<project> has no screens yet. Make one on the project's Pages & screens page in DS source. |
--screen all on a project without screens. |
Make a screen on the Pages & screens page first. |
<project> has no pages yet. Make one on the project's Pages & screens page in DS source, then run this again. |
--screen site on a project without a marketing page. |
Make a page on the Pages & screens page first. |
None of <project>'s pages is in this app yet, and the site menu links only the pages here. Pull a page with it: npx designsource add --screen <page>,site |
--screen site while no page is in the app. |
Run the command shown, which pulls a page with the menu. |
None of <project>'s pages is in this app yet, and the site menu links only the pages here. None of them can be built now: pick another version of one in DS source, then run this again. |
--screen site while no page is in the app, and no page's version can be built. |
Pick another version of a page on the Pages & screens page, then rerun. |
Skipped screen "x": it shows "y" in its hero, which was skipped, so the page would not build. Fix "y" and run this again. |
Page x shows app screen y in its hero, y was skipped (its own line says why) and is not in the app yet. |
Fix what y's line names, then rerun the same command. |
Skipped screen "x": <reason> The site menu links only the pages in this app, so it was not written either. |
--screen x,site where page x was skipped and no other page is in the app. |
Fix what the reason names, then rerun the same command. |
Skipped the site menu: <reason>. |
A library the menu needs is on another major version in your app. | Align the version, then rerun. |
Skipped the site menu: you edited screens/parts/<part> and the kit's version has changed since. Run again with --force to replace it. |
You edited a part the site menu uses, and the kit changed it. | Rerun with --force, or merge by hand. |
Skipped the app shell: the kit from this DS source server has no <component>. |
--screen shell against a kit without the sidebar or icons component. |
Update the server, or leave out --screen shell. |
The app shell lists no screens yet: each one you add with designsource add --screen joins its menu. |
The shell was written with no screen in the app. | Nothing is wrong: add screens and they join the menu. |
This DS source server does not send screens yet. Try again later, or run add without --screen. |
The server is older than the CLI. | Try later, or leave out --screen. |
Wrote the kit's rules for coding agents into AGENTS.md. |
Not an error: the rules block was written. | Nothing. |
Left <file> as it is: its designsource:rules markers are incomplete or repeated. Fix them, or delete them to get a fresh block. |
The file has a start marker with no end, an end with no start, or two blocks. | Fix or delete the markers, then rerun. |
Left <file> as it is: it is over 256 KB. |
add does not edit a rules file that large. |
Nothing, or shorten the file. |
Left <file> as it is: it is not UTF-8 text. |
The file could not be read as text. | Save it as UTF-8. |
Left <file> as it is: it links outside this app, or to a file other than AGENTS.md or CLAUDE.md. |
The file is a link add will not follow. |
Nothing, or make it a plain file. |
Left <file> as it is: it says designsource:rules:off. |
You turned the block off. | Nothing; delete that line to get it back. |
Screens go under your components folder, and tsconfig does not resolve "<alias>". Add the alias to tsconfig (or a components.json "components" alias), then run this again. |
The app has no components folder alias. | Add the alias, then rerun. |
check
| Line | Means | Do |
|---|---|---|
<folder> does not exist or is not a folder. |
The folder named is not there. | Check the path. |
Run this in your app's folder: <folder> is your home folder or above it, and check would read every project on this computer. |
check ran in the home folder, a parent of it or a filesystem root. |
Run it in the app's folder. |
This app does not have the UI kit yet: run npx designsource add. |
Not an error: no file add wrote is in the folder. |
Run add first. |
check --strict: <n> findings above. |
--strict found something; the report is above it. |
Fix what it lists, or drop --strict. |
Without a design system connected here, check_design_system reads only folders inside <folder>. Pass a folder inside it, or ask the user to run npx designsource login in a terminal in the app's folder. |
The MCP tool, in a session with no token or sign-in, was asked for a folder outside the one the client started in. | Pass a folder inside it, or run login in the app's folder. |
integrate
| Line | Means | Do |
|---|---|---|
integrate is not supported for now: DS source supports React apps. It still runs, but it may change or go away. |
Not an error: printed on stderr, then integrate runs as before. |
Nothing; expect it to change. |
connect and login
| Line | Means | Do |
|---|---|---|
The saved token for this project was not accepted. Run again with --token <project token> (or DS_SYNC_TOKEN) to replace it. |
connect outside a terminal met a refused saved token. |
Pass the new token. |
More than one design system is connected to this folder: <names>. Pass --token, or run in the project folder you mean. |
Several saved tokens cover this folder and there is no terminal to pick. | Pass --token, or run from the right folder. |
Option --project goes with --forget |
connect --project without --forget. |
Add --forget, or drop --project. |
Run this in your project folder — <folder> is your home folder, and writing there would set up every project on this computer. |
connect refuses the home folder, its parents and a filesystem root (it says a system folder for those). |
Run it in the project folder. |
Not signed in to <origin> on this computer. |
logout found no sign-in to remove. |
Nothing to do. |
More than one designsource account is signed in on this computer (<origins>); pass --api. |
logout with sign-ins on several servers and none on the default. |
Pass --api with the origin to sign out of. |
No coding apps found. Pass --apps claude,cursor,vscode,codex,gemini. |
Nothing was detected on this computer and --yes or no terminal gave no picker. |
Name the apps. |
No apps picked. Nothing was changed. |
The picker was left empty. | Pick at least one. |
Codex reads it once you trust this project in Codex. |
Codex reads a project's file only after you trust the folder. | Open the folder in Codex and trust it. |
Gemini CLI reads it unless folder trust is on and this folder is not trusted. |
Gemini CLI's folder trust. | Trust the folder in Gemini CLI. |
Run npx designsource login inside a project folder (one with a .git folder or a package.json). |
login refuses a home folder, its parents, a root, or a bare folder. |
Run it in the project. |
Sign-in was denied in the browser. |
You denied the code. | Run login again if you meant to approve. |
The code expired. Run npx designsource login again. |
Ten minutes passed. | Run login again. |
Could not reach the server to revoke this sign-in; revoke it on your profile page. |
logout removed the local sign-in but could not revoke it. |
Revoke it from the profile page's Coding apps card. |
mcp
| Line | Means | Do |
|---|---|---|
This computer has no token for the "<name>" design system. Run npx designsource connect in the project folder. |
mcp --project with no token saved for it. |
Run connect in the project folder. |
Making screens needs the user's own sign-in: ask the user to run npx designsource login in a terminal in this folder, then restart this app. This app runs designsource with a project token, which can list, read and pull screens but not make them. |
generate_screen on a project-token session. |
Run login in the folder, then restart the app. |
Your sign-in predates screen generation. Run npx designsource login again in this folder. |
A sign-in made before screens existed lacks the screens scope. | Run login again. |
--project must be a project id from the workbench (letters, digits, - and _). |
The entry's --project is malformed. |
Run connect again to rewrite the entry. |
<the server's sentence> Add credits or a key: <server>/credits |
generate_screen could not be funded. |
Add credits or a provider key. |
"blocks" and "no_blocks" cannot both be true. |
add_ui_kit was asked to add the blocks and to leave them out. |
Pass one. |
No blocks were added: they go into the /design-system section, which only a call with every component writes. Call add_ui_kit with blocks: true and no components. |
blocks: true on a call that wrote no section. |
Call again without components. |
Not sure which project folder to change: run npx designsource connect in it first. |
add_ui_kit could not tell which folder the project belongs to. |
Run connect in the app's folder. |
No design system is linked to this folder yet. Call list_design_systems, then use_design_system with one of its ids, or call create_design_system to make a new one. |
The account path has no linked project here. | Have the agent create or pick one. |
More than one designsource account is signed in on this computer; pass --api. |
Two servers' accounts are saved. | Add --api to the entry. |
No package.json in <folder>, so there is no app here to add the UI kit to. Call add_ui_kit again with folder set to the app's folder. |
add_ui_kit with no folder where no app is. It lists the app folders it may pass, and the apps that are repositories of their own the user must run login in first. |
Pass the app's path as folder, or run login in the app's repository. |
<folder> is outside <session folder>. This app runs designsource with a project token for that folder only; pass a folder inside it, or ask the user to run npx designsource connect in a terminal in the app's folder and restart this app. |
folder outside the session's folder on a project token with no saved project. |
Pass a folder inside it, or run connect in the app. |
designsource is not signed in for <folder>. Ask the user to run npx designsource login in a terminal in that folder, then call add_ui_kit again; or pass a folder inside <session folder>. |
folder names another repository the account is not signed in for. |
Run login in that folder. |
<folder> is not connected to this design system. Ask the user to run npx designsource connect in a terminal in that folder, then call add_ui_kit again; or pass a folder inside <session folder>. |
The same on a project token. | Run connect in that folder. |
No folder at <path>. Pass the path of the app's folder (the one with its package.json). |
folder is not a folder. |
Pass the app's folder. |
<folder> is the home folder or a system folder; designsource never writes there. Pass the app's own folder. |
folder is the home folder, a parent of it or a filesystem root. |
Pass the app's own folder. |
"folder" must be a path to a folder (relative to the project, or absolute). |
folder is not a usable path. |
Pass a path. |
The answer did not arrive, so the screen may or may not have been saved. Check Pages & screens in DS source (or call list_screens, which needs Pro) before trying again. A call that was interrupted can still be charged for the work that ran. |
generate_screen lost its answer. |
Check the Pages & screens page before trying again. |
This design system has no screens yet. Make one with generate_screen (after the user signs in with npx designsource login), or on the project's Pages & screens page in DS source. |
list_screens on a project with none. |
Make a screen first. |
This DS source server cannot make screens yet. |
generate_screen against a server older than screen generation. |
Use a newer server. |
A workspace of repositories
A workspace repository can hold the app as a repository of its own (a frontend/ clone, often in the workspace's .gitignore). Coding sessions that start in the workspace, or in a git worktree of it, do not have the app in their folder, and add_ui_kit answers No package.json in …, listing the app folders it may be pointed at. Two ways through:
- Open the coding session in the app's own repository, and run
npx designsource loginthere. - Or run
npx designsource loginin both the workspace and the app's repository, and let the agent pass the app's path asfolder. The app's own linked design system is used when it has one, else the workspace's, and the answer says which.
A folder inside the workspace with no repository of its own in between (a monorepo's apps/web) needs no second sign-in. A repository nested in the workspace is never trusted through the workspace: only its own login counts.
Not connected?
The MCP server is stdio, started by the coding app as npx -y designsource@latest mcp; there is no HTTP address for it. In a terminal in the project folder the user runs npx designsource login (or npx designsource connect with a project token), commits the settings file it writes, and restarts the app.
Related
- Tokens and credentials.
- Error codes: the same refusals on the API.