argsbarg 7.1.3 → 7.1.4

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 CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.1.4] - 2026-09-30
11
+
12
+ ### Changed
13
+
14
+ - The MCP plugin example now ships a committed, self-contained Node bundle (`dist/mcp-plugin.mjs`) that both plugin manifests run with `node`, replacing source-only `bun start`. Plugin users need Node >=20 instead of Bun, and startup installs nothing. `just check` rebuilds the bundle, the release script rebuilds it after the version bump, and the optional `docs/node-distro.md` guide is removed.
15
+
10
16
  ## [7.1.3] - 2026-09-29
11
17
 
12
18
  ### Added
@@ -1083,7 +1089,8 @@ const cli = { ... } satisfies CliProgram; // or : CliProgram
1083
1089
  - Migrate schemas: rename every `children` property to **`commands`**; move positional definitions to **`CliPositional`** objects on `positionals` and strip `positional` / `argMin` / `argMax` from flag definitions under `options` (flags only carry `name`, `description`, `kind`, and optional `shortName`).
1084
1090
  - Imports: use `CliPositional` where needed; replace `CliOptionDef` with `CliOption` or `CliPositional` as appropriate.
1085
1091
 
1086
- [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v7.1.3...HEAD
1092
+ [Unreleased]: https://github.com/bdombro/bun-argsbarg/compare/v7.1.4...HEAD
1093
+ [7.1.4]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.1.4
1087
1094
  [7.1.3]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.1.3
1088
1095
  [7.1.2]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.1.2
1089
1096
  [7.1.1]: https://github.com/bdombro/bun-argsbarg/releases/tag/v7.1.1
@@ -9,8 +9,8 @@
9
9
  "repository": "https://github.com/bdombro/bun-argsbarg",
10
10
  "mcpServers": {
11
11
  "mcp-plugin": {
12
- "command": "bun",
13
- "args": ["--cwd", "${CLAUDE_PLUGIN_ROOT}", "start"]
12
+ "command": "node",
13
+ "args": ["${CLAUDE_PLUGIN_ROOT}/dist/mcp-plugin.mjs", "mcp"]
14
14
  }
15
15
  }
16
16
  }
@@ -10,8 +10,8 @@
10
10
  "repository": "https://github.com/bdombro/bun-argsbarg",
11
11
  "mcpServers": {
12
12
  "mcp-plugin": {
13
- "command": "bun",
14
- "args": ["--cwd", "${CURSOR_PLUGIN_ROOT}", "start"]
13
+ "command": "node",
14
+ "args": ["${CURSOR_PLUGIN_ROOT}/dist/mcp-plugin.mjs", "mcp"]
15
15
  }
16
16
  }
17
17
  }
@@ -76,10 +76,9 @@ Avoid needless extraction: keep single-use helpers in the calling file by defaul
76
76
 
77
77
  ## Tooling
78
78
 
79
- - Use Bun for development and the default plugin runtime (`bun`, `bun x`, `bun test`).
80
- - `bun start` installs locked dependencies, generates schemas, then starts MCP. Keep setup output on stderr; stdout is the MCP protocol.
81
- - Ship source, `bun.lock`, and inline plugin manifests. Do not ship `node_modules`, generated schemas, or a compiled bundle.
82
- - Node distribution is an explicit alternative documented in `docs/node-distro.md`; do not change the default runtime implicitly.
79
+ - Use Bun for development, schemagen, tests, and bundling (`bun`, `bun x`, `bun test`).
80
+ - Plugins run the committed Node bundle `dist/mcp-plugin.mjs` via inline manifest MCP configs. `just check` rebuilds it; commit it with its source and never hand-edit it.
81
+ - Keep the MCP runtime Node-compatible: no Bun-only APIs (`Bun.serve`, `bun:sqlite`) on MCP paths. stdout is the MCP protocol.
83
82
 
84
83
  ## Testing Boundaries
85
84
 
@@ -93,7 +92,6 @@ Avoid needless extraction: keep single-use helpers in the calling file by defaul
93
92
  ## Documentation
94
93
 
95
94
  - `README.md` — user-facing install/commands
96
- - `docs/node-distro.md` — optional conversion from source-only Bun plugins to a bundled Node MCP distribution
97
95
  - `docs/architecture.md` — maintainer internals (create if missing)
98
96
  - Generated: `just docgen` → `docs/cli.md`, `docs/cli-schema.json`
99
97
  - `skills/mcp-plugin/SKILL.md` — agent skill router (scaffolded from template; customize as needed)
@@ -6,14 +6,14 @@ Argsbarg MCP plugin template for Cursor and Claude Code marketplaces (@sg schema
6
6
 
7
7
  `mcp-plugin` packages an MCP server and agent skills directly for Cursor and Claude Code marketplaces:
8
8
 
9
- - **Cursor Plugin**: inline MCP configuration in `.cursor-plugin/plugin.json` runs `bun --cwd ${CURSOR_PLUGIN_ROOT} start`.
10
- - **Claude Code Plugin**: inline MCP configuration in `.claude-plugin/plugin.json` runs `bun --cwd ${CLAUDE_PLUGIN_ROOT} start`.
9
+ - **Cursor Plugin**: inline MCP configuration in `.cursor-plugin/plugin.json` runs `node ${CURSOR_PLUGIN_ROOT}/dist/mcp-plugin.mjs mcp`.
10
+ - **Claude Code Plugin**: inline MCP configuration in `.claude-plugin/plugin.json` runs `node ${CLAUDE_PLUGIN_ROOT}/dist/mcp-plugin.mjs mcp`.
11
11
  - **In-repo skills**: `skills/mcp-plugin/SKILL.md` discovered and loaded by agent platforms.
12
- - **Source-only distribution**: TypeScript and `bun.lock` are shipped; dependencies and generated schemas are prepared locally. No compiled bundle is shipped.
12
+ - **Committed Node bundle**: `dist/mcp-plugin.mjs` is self-contained (dependencies and schemas bundled), so a fresh clone runs with no install step.
13
13
 
14
14
  ## Installation
15
15
 
16
- Requires Bun >=1.3 on the host's PATH, a writable plugin directory, and network access for uncached dependencies. `bun start` installs locked dependencies and generates schemas before starting MCP. Setup output goes to stderr; stdout contains only MCP messages. Startup stops if preparation fails.
16
+ Requires Node >=20 on the host's PATH. Nothing is installed at startup; stdout contains only MCP messages. Maintainers need Bun to develop and rebuild the bundle (`just check`).
17
17
 
18
18
  The in-repo example retains its `argsbarg: file:../..` development dependency. Before distributing a standalone copy, resolve that dependency for the destination repository and regenerate its lockfile; the parent-checkout path is not portable.
19
19
 
@@ -58,8 +58,9 @@ cd bun-argsbarg/examples/mcp-plugin
58
58
  # Install dependencies and generate schemas
59
59
  just setup
60
60
 
61
- # Run the source-only MCP server
62
- bun start
61
+ # Rebuild the committed Node bundle and run the MCP server from it
62
+ just build
63
+ node dist/mcp-plugin.mjs mcp
63
64
 
64
65
  # Link into local Cursor plugins for live testing
65
66
  just plugin-cursor-upsert
@@ -68,7 +69,7 @@ just plugin-cursor-upsert
68
69
  just plugin-claude-install
69
70
  ```
70
71
 
71
- Restart Claude Code after installing. Use `bun src/index.ts <command>` for CLI commands; `bun start` is specifically the MCP entry point. In-repo development uses `just setup` to repair the local dependency's CLI executable link.
72
+ Restart Claude Code after installing. Use `bun src/index.ts <command>` for CLI commands from source. Commit `dist/mcp-plugin.mjs` whenever source changes; `just check` rebuilds it. In-repo development uses `just setup` to repair the local dependency's CLI executable link.
72
73
 
73
74
  ## Documentation
74
75
 
@@ -78,4 +79,3 @@ Restart Claude Code after installing. Use `bun src/index.ts <command>` for CLI c
78
79
  | MCP tools | [docs/mcp.md](docs/mcp.md) or `mcp-plugin docs mcp` |
79
80
  | HTTP API | [docs/http.md](docs/http.md) or `mcp-plugin docs http` |
80
81
  | OpenAPI 3.1 | [docs/openapi.json](docs/openapi.json) |
81
- | Optional Node distribution | [docs/node-distro.md](docs/node-distro.md) |