You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/dnb-design-system-portal/src/docs/uilib/usage/first-steps/tools.mdx
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,19 @@ order: 3
12
12
13
13
If your AI coding agent supports the Model Context Protocol (MCP), you can run a small local MCP server that exposes the packaged documentation from `/docs`.
14
14
15
+
But first, make sure you have installed `@dnb/eufemia` in your project:
16
+
17
+
```bash
18
+
npm install @dnb/eufemia
19
+
# or
20
+
yarn add @dnb/eufemia
21
+
# or
22
+
pnpm add @dnb/eufemia
23
+
```
24
+
15
25
Run the server from your project (where `@dnb/eufemia` is installed):
16
26
17
-
Example MCP config (e.g. `.vscode/mcp.json`):
27
+
### Example MCP config (e.g. `.vscode/mcp.json`):
18
28
19
29
```json
20
30
{
@@ -29,12 +39,18 @@ Example MCP config (e.g. `.vscode/mcp.json`):
29
39
}
30
40
```
31
41
32
-
CLI (Claude MCP):
42
+
### Using Claude CLI with MCP:
33
43
34
44
```bash
35
45
claude mcp add --transport stdio eufemia -- node node_modules/@dnb/eufemia/mcp/mcp-docs-server.js
0 commit comments