@skillsmith/cli 0.2.3 → 0.2.5
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 +77 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/src/commands/author.d.ts +14 -1
- package/dist/src/commands/author.d.ts.map +1 -1
- package/dist/src/commands/author.js +174 -5
- package/dist/src/commands/author.js.map +1 -1
- package/dist/src/commands/index.d.ts +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +1 -1
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/index.js +3 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/templates/index.d.ts +1 -0
- package/dist/src/templates/index.d.ts.map +1 -1
- package/dist/src/templates/index.js +1 -0
- package/dist/src/templates/index.js.map +1 -1
- package/dist/src/templates/mcp-server.template.d.ts +97 -0
- package/dist/src/templates/mcp-server.template.d.ts.map +1 -0
- package/dist/src/templates/mcp-server.template.js +529 -0
- package/dist/src/templates/mcp-server.template.js.map +1 -0
- package/dist/tests/author.test.js +199 -0
- package/dist/tests/author.test.js.map +1 -1
- package/dist/tests/mcp-server-template.test.d.ts +7 -0
- package/dist/tests/mcp-server-template.test.d.ts.map +1 -0
- package/dist/tests/mcp-server-template.test.js +351 -0
- package/dist/tests/mcp-server-template.test.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Command-line interface for Skillsmith - discover, manage, and author Claude Code skills.
|
|
4
4
|
|
|
5
|
-
## What's New in v0.2.
|
|
5
|
+
## What's New in v0.2.4
|
|
6
6
|
|
|
7
|
+
- **MCP Server Scaffolding**: Generate TypeScript MCP servers with `author mcp-init`
|
|
8
|
+
- **Decision Helper Integration**: Seamless flow from evaluation to scaffolding
|
|
7
9
|
- **Subagent Generation**: Generate companion specialist agents for parallel execution (37-97% token savings)
|
|
8
10
|
- **Skill Transform**: Upgrade existing skills with subagent configuration
|
|
9
11
|
- **Tool Detection**: Automatic analysis of required tools from skill content
|
|
@@ -210,6 +212,63 @@ skillsmith author transform ~/.claude/skills --batch
|
|
|
210
212
|
- `--tools <tools>` - Override detected tools
|
|
211
213
|
- `--model <model>` - Model: sonnet, opus, haiku (default: sonnet)
|
|
212
214
|
|
|
215
|
+
### author mcp-init
|
|
216
|
+
|
|
217
|
+
Scaffold a new MCP server project with TypeScript and stdio transport.
|
|
218
|
+
|
|
219
|
+
```bash
|
|
220
|
+
# Interactive mode
|
|
221
|
+
skillsmith author mcp-init
|
|
222
|
+
|
|
223
|
+
# With name
|
|
224
|
+
skillsmith author mcp-init my-mcp-server
|
|
225
|
+
|
|
226
|
+
# With pre-defined tools
|
|
227
|
+
skillsmith author mcp-init my-server --tools "greet,search,process"
|
|
228
|
+
|
|
229
|
+
# Custom output directory
|
|
230
|
+
skillsmith author mcp-init my-server --output ./servers
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Options:**
|
|
234
|
+
- `-o, --output <path>` - Output directory (default: current directory)
|
|
235
|
+
- `--tools <tools>` - Initial tool names (comma-separated)
|
|
236
|
+
- `--force` - Overwrite existing directory
|
|
237
|
+
|
|
238
|
+
**Generated Structure:**
|
|
239
|
+
```
|
|
240
|
+
my-mcp-server/
|
|
241
|
+
├── package.json # npm package with MCP SDK
|
|
242
|
+
├── tsconfig.json # TypeScript configuration
|
|
243
|
+
├── src/
|
|
244
|
+
│ ├── index.ts # Entry point (npx-ready)
|
|
245
|
+
│ ├── server.ts # MCP server setup
|
|
246
|
+
│ └── tools/
|
|
247
|
+
│ ├── index.ts # Tool definitions
|
|
248
|
+
│ └── example.ts # Example tool implementation
|
|
249
|
+
├── README.md # Usage documentation
|
|
250
|
+
└── .gitignore
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**After Generation:**
|
|
254
|
+
```bash
|
|
255
|
+
cd my-mcp-server
|
|
256
|
+
npm install
|
|
257
|
+
npm run dev # Start in development mode
|
|
258
|
+
```
|
|
259
|
+
|
|
260
|
+
**Configure in Claude Code** (`~/.claude/settings.json`):
|
|
261
|
+
```json
|
|
262
|
+
{
|
|
263
|
+
"mcpServers": {
|
|
264
|
+
"my-mcp-server": {
|
|
265
|
+
"command": "npx",
|
|
266
|
+
"args": ["tsx", "/path/to/my-mcp-server/src/index.ts"]
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
213
272
|
### import
|
|
214
273
|
|
|
215
274
|
Import skills from GitHub (for populating local database).
|
|
@@ -294,6 +353,23 @@ skillsmith author transform ~/.claude/skills/docker
|
|
|
294
353
|
skillsmith author transform ~/.claude/skills --batch --force
|
|
295
354
|
```
|
|
296
355
|
|
|
356
|
+
### Create an MCP Server
|
|
357
|
+
|
|
358
|
+
```bash
|
|
359
|
+
# Scaffold a new MCP server
|
|
360
|
+
skillsmith author mcp-init my-slack-integration --tools "send_message,list_channels"
|
|
361
|
+
|
|
362
|
+
# Navigate and install dependencies
|
|
363
|
+
cd my-slack-integration
|
|
364
|
+
npm install
|
|
365
|
+
|
|
366
|
+
# Start development server
|
|
367
|
+
npm run dev
|
|
368
|
+
|
|
369
|
+
# Add to Claude Code settings
|
|
370
|
+
# Edit ~/.claude/settings.json to include the server
|
|
371
|
+
```
|
|
372
|
+
|
|
297
373
|
### Manage Skills
|
|
298
374
|
|
|
299
375
|
```bash
|