@bearnie/mcp 0.1.2 → 0.2.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/README.md +28 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +361 -13842
- package/dist/install.d.ts +74 -0
- package/dist/install.d.ts.map +1 -0
- package/package.json +14 -6
package/README.md
CHANGED
|
@@ -112,6 +112,34 @@ Add a component to your Astro project. Creates files in `src/components/bearnie/
|
|
|
112
112
|
|
|
113
113
|
Install components first, then add `barrel` last for `import { Button, Card } from "@/components/bearnie"`.
|
|
114
114
|
|
|
115
|
+
### `add_components`
|
|
116
|
+
|
|
117
|
+
Add multiple components in one step. Resolves registry dependencies and installs `barrel` last when included.
|
|
118
|
+
|
|
119
|
+
**Parameters:**
|
|
120
|
+
|
|
121
|
+
- `names` (string[]): Component names to add
|
|
122
|
+
- `cwd` (string, optional): Working directory
|
|
123
|
+
|
|
124
|
+
**Example prompt:** "Add button, card, and barrel to my project"
|
|
125
|
+
|
|
126
|
+
### `list_installed`
|
|
127
|
+
|
|
128
|
+
List the Bearnie components already installed in the project, and whether each one is up to date with the registry, modified locally, or missing files. To update an outdated component, run `add_component` with its name (this overwrites local files with the registry version).
|
|
129
|
+
|
|
130
|
+
**Parameters:**
|
|
131
|
+
|
|
132
|
+
- `cwd` (string, optional): Working directory
|
|
133
|
+
|
|
134
|
+
**Example prompts:**
|
|
135
|
+
|
|
136
|
+
- "Which Bearnie components does this project use?"
|
|
137
|
+
- "Are my Bearnie components up to date?"
|
|
138
|
+
|
|
139
|
+
## Dependency Installation
|
|
140
|
+
|
|
141
|
+
When a component needs npm packages, the server installs them automatically using your project's package manager, detected from the lockfile (npm, pnpm, yarn, or bun). It also respects custom directories from `bearnie.json` if present.
|
|
142
|
+
|
|
115
143
|
## Environment Variables
|
|
116
144
|
|
|
117
145
|
| Variable | Description |
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|