@nucleux/mcp 0.1.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 +21 -0
- package/README.md +55 -0
- package/dist/index.js +2387 -0
- package/package.json +51 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nucleux
|
|
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
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# @nucleux/mcp
|
|
2
|
+
|
|
3
|
+
Model Context Protocol server for **[Nucleux](https://github.com/intelligaia-open-labs/nucleux)** — the agentic UI component library for React. It lets AI coding agents (Claude Code, Claude Desktop, Cursor, Windsurf, …) **discover, search, and correctly use** `@nucleux` components: real descriptions, exports, verbatim TypeScript `Props`, install/import lines, and full example compositions.
|
|
4
|
+
|
|
5
|
+
It ships a catalog generated from the packages themselves, so the answers match the published code — no guessing, no hallucinated props.
|
|
6
|
+
|
|
7
|
+
## Run
|
|
8
|
+
|
|
9
|
+
No install needed — run it with `npx`:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx -y @nucleux/mcp
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
It speaks MCP over stdio.
|
|
16
|
+
|
|
17
|
+
## Tools
|
|
18
|
+
|
|
19
|
+
| Tool | What it does |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| `list_components` | List every component with package + one-line description. |
|
|
22
|
+
| `search_components` | Keyword search across names, descriptions, and keywords. |
|
|
23
|
+
| `get_component` | Full detail for one component — description, install/import, exports, and the verbatim `Props` interface(s). Accepts `Badge`, `badge`, or `@nucleux/badge`. |
|
|
24
|
+
| `get_setup` | Install + Tailwind/tokens theming setup. Read before writing code that imports `@nucleux`. |
|
|
25
|
+
| `list_examples` | List runnable example compositions (agent chat, dashboards, card variations, settings…). |
|
|
26
|
+
| `get_example` | Full TSX source of one example composition. |
|
|
27
|
+
|
|
28
|
+
## Configure your client
|
|
29
|
+
|
|
30
|
+
### Claude Code
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
claude mcp add nucleux -- npx -y @nucleux/mcp
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Claude Desktop / Cursor / Windsurf
|
|
37
|
+
|
|
38
|
+
Add to the client's MCP config (`claude_desktop_config.json`, `.cursor/mcp.json`, …):
|
|
39
|
+
|
|
40
|
+
```json
|
|
41
|
+
{
|
|
42
|
+
"mcpServers": {
|
|
43
|
+
"nucleux": {
|
|
44
|
+
"command": "npx",
|
|
45
|
+
"args": ["-y", "@nucleux/mcp"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Then ask your agent things like *"list the Nucleux chat components"* or *"show me the InputBar props and build a composer"* — it will call these tools and use the exact API.
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
MIT © Nucleux
|