@primecoderin/fast-ui-react-mcp 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 The @primecoderin/fast-ui-react authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,66 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @primecoderin/fast-ui-react-mcp
2
+
3
+ An [MCP](https://modelcontextprotocol.io) server that teaches coding assistants (Claude Code, Cursor, VS Code
4
+ Copilot, Windsurf, and any MCP client) how to use **@primecoderin/fast-ui-react**: what to import, every component's exact
5
+ props, the design tokens, the setup and theming guides, and tested examples. Everything it says is generated from
6
+ the library's source, so it matches the version it ships with.
7
+
8
+ ## Add it to your assistant
9
+
10
+ It runs with `npx`; nothing to install in your app.
11
+
12
+ **Claude Code**
13
+
14
+ ```bash
15
+ claude mcp add fast-ui -- npx -y @primecoderin/fast-ui-react-mcp
16
+ ```
17
+
18
+ **Cursor** (`.cursor/mcp.json`) and **Windsurf** (`~/.codeium/windsurf/mcp_config.json`)
19
+
20
+ ```json
21
+ {
22
+ "mcpServers": {
23
+ "fast-ui": { "command": "npx", "args": ["-y", "@primecoderin/fast-ui-react-mcp"] }
24
+ }
25
+ }
26
+ ```
27
+
28
+ **VS Code** (`.vscode/mcp.json`)
29
+
30
+ ```json
31
+ {
32
+ "servers": {
33
+ "fast-ui": { "type": "stdio", "command": "npx", "args": ["-y", "@primecoderin/fast-ui-react-mcp"] }
34
+ }
35
+ }
36
+ ```
37
+
38
+ Then ask your assistant, for example: "Add a filter drawer with a status select to this page using fast-ui", or
39
+ "Theme the app for tenant Acme with primary #6d28d9 and 4px corners".
40
+
41
+ ## What it offers
42
+
43
+ | Tool | Answers |
44
+ | --- | --- |
45
+ | `get_overview` | What the library is, how to install and set it up, and how to use these tools. |
46
+ | `list_exports` | Every component, hook, function, type and constant, and where to import it from. |
47
+ | `get_export` | One export in full: for a component, every prop with its type, whether it is required, its default and its doc, and the types it uses. |
48
+ | `get_examples` | Tested usage of a component (the library's stories, which run light, dark and right to left with an accessibility check). |
49
+ | `list_tokens` | The design tokens with light, dark and right-to-left values and the Tailwind utility of each. |
50
+ | `list_guides`, `get_guide` | Getting started, Next.js, theming and white label, CSP nonce, forms, prop conventions, testing. |
51
+ | `search_docs` | Keyword search across exports, guides and tokens. |
52
+
53
+ Every tool is read-only and works offline. The guides are also served as resources (`fast-ui://guides/<topic>`).
54
+
55
+ ## Develop
56
+
57
+ From the repository root: `npm run mcp:build` writes `mcp/catalog.json` from the library's source and compiles
58
+ the server to `mcp/dist/`. `npm test` builds it and runs its tests (`tests/unit/mcp*.test.ts`), including one
59
+ that starts the server and talks to it as an MCP client. Try it by hand with the MCP Inspector:
60
+
61
+ ```bash
62
+ npx @modelcontextprotocol/inspector node mcp/dist/server.js
63
+ ```
64
+
65
+ Publish it with `npm publish --workspace mcp` (its `prepack` regenerates the catalogue and builds), with the same
66
+ version as the library.