mcpill 1.5.0 → 1.6.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/CHANGELOG.md +4 -0
- package/README.md +1 -0
- package/dist/cli.js +18 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
- `HELLO-MCP.md` template (scaffolded by `mcpill init`) now includes a commented-out `## Hook:` section stub with inline field explanations for all four Claude Code event types
|
|
6
|
+
|
|
3
7
|
## 1.5.0
|
|
4
8
|
|
|
5
9
|
- `mcpill init` scaffolds `.mcpill/server/hooks/` with a commented `example-hook.md` stub covering all four Claude Code event types (`PreToolUse`, `PostToolUse`, `PreCompact`, `Stop`)
|
package/README.md
CHANGED
|
@@ -49,6 +49,7 @@ Scaffolds a new project in the current directory:
|
|
|
49
49
|
- `.mcpill/server/hooks/example-hook.md` — stub hook file (see file for format; all fields commented out by default)
|
|
50
50
|
- `.mcpill/HELLO-MCP.md` — ready-to-run example (copy into `PILL.md` to try it)
|
|
51
51
|
- `.claude/commands/create-pill.md` — `/create-pill` slash command; say `/create-pill` in Claude Code to start the guided pill-creation workflow
|
|
52
|
+
- `README.md` — quickstart guide covering project layout and tool-editing workflow
|
|
52
53
|
- `package.json` — `{ type: "module", dependencies: { mcpill-runtime } }` — deps are installed automatically by `mcpill compile` and `mcpill validate`
|
|
53
54
|
|
|
54
55
|
### `mcpill compile`
|
package/dist/cli.js
CHANGED
|
@@ -273,6 +273,24 @@ description: Ask the server to introduce itself.
|
|
|
273
273
|
behavior: |
|
|
274
274
|
A prompt (no args) with a single user message:
|
|
275
275
|
"Introduce yourself \u2014 what is hello-mcp and what can it do?"
|
|
276
|
+
|
|
277
|
+
---
|
|
278
|
+
|
|
279
|
+
<!-- Add a ## Hook: section to run a shell command when Claude Code fires an event.
|
|
280
|
+
Run: mcpill compile after editing to apply changes to .claude/settings.json.
|
|
281
|
+
Remove comment markers to activate.
|
|
282
|
+
|
|
283
|
+
trigger \u2014 event that fires the hook: PreToolUse | PostToolUse | PreCompact | Stop
|
|
284
|
+
matcher \u2014 regex matched against tool name (PreToolUse/PostToolUse only); blank = all tools
|
|
285
|
+
command \u2014 shell command; stdout shown to Claude; exit!=0 blocks (PreToolUse)
|
|
286
|
+
|
|
287
|
+
## Hook: example-hook
|
|
288
|
+
|
|
289
|
+
trigger: PreToolUse
|
|
290
|
+
matcher: .*
|
|
291
|
+
command: echo "example hook \u2014 replace this command"
|
|
292
|
+
|
|
293
|
+
-->
|
|
276
294
|
`;
|
|
277
295
|
var SERVER_MD_TEMPLATE = `## Config
|
|
278
296
|
name: my-server
|