Remove the MCP bundle from the plugin; ship skills only
The plugin's MCP surface (dist/mcp/server.js, ~9.8MB) was never turned on (the enable_mcp default was false, README says most users do not need it) and its only consumer was .zcode-plugin's .mcp.json. Meanwhile every source change had to rebuild and re-commit a fresh 9.8MB minified version — 129 versions, ~556MB of blob history — for a tool nobody used. What goes away: - .mcp.json, dist/mcp/server.js, scripts/build-plugin.mjs, the `build:plugin` script, and the CI "Build MCP Plugin & Verify" step (and its bundle gate). - plugin.json drops `mcpServers` and the `enable_mcp` userConfig: the plugin now ships skills only. - bump-version and the PR template stop rebuilding/reminding about the bundle. What stays: - The local MCP: `seal-use mcp` runs the stdio server from source/the binary, and `seal-use mcp-config` still prints the snippet for Cursor/Claude Desktop/Codex. src/server.ts keeps its in-process tests (6/6) — only the "boot the packaged bundle" test is dropped, since there is no artifact. - The embedded skill images in the compiled binary: build:binary still runs generate-embedded-skill, so `seal-use skill install` writes all 6 real PNGs (verified: 22 files, valid PNG signatures). Docs updated (README, AGENTS, issue-pr rule, PR template, SKILL.md) so no reference to dist/mcp or build:plugin remains outside historical proposals and CHANGELOG.
This commit is contained in:
1 parent
2210f0d2dc
commit
28b4ac1412
14 files changed
+14
-2643
No files matched your search
@@ -12,7 +12,6 @@ Provide a concise summary of the changes made and the motivation behind them.
|
||||
- [ ] `bun run check` (Type-check passed without errors)
|
||||
- [ ] `bun test` (All unit tests passed)
|
||||
- [ ] `bun run openapi:bundle` (OpenAPI bundles up to date)
|
||||
- [ ] `bun run build:plugin` (MCP plugin build succeeds)
|
||||
- [ ] `bun run build:binary` (Binary build succeeds)
|
||||
|
||||
## 📌 Related Issues / References
|
||||
|
||||
@@ -46,22 +46,6 @@ jobs:
|
||||
bun run openapi:bundle
|
||||
git diff --exit-code dist/openapi.json || (echo "::error::dist/openapi.json is out of sync with openapi/openapi.yaml. Run 'bun run openapi:bundle' and commit changes." && exit 1)
|
||||
|
||||
- name: Build MCP Plugin & Verify
|
||||
run: |
|
||||
bun run build:plugin
|
||||
git diff --exit-code dist/mcp/server.js || (echo "::error::dist/mcp/server.js is out of sync with src/. Run 'bun run build:plugin' and commit changes." && exit 1)
|
||||
# Boot the freshly built bundle and complete an MCP handshake. A bundle that cannot start
|
||||
# is invisible to source-level tests — this has regressed before, when circular imports
|
||||
# scrambled zod's initialisation order and shipped an entry point that never answered.
|
||||
# Re-running the server tests here points them at the artifact just built, not the
|
||||
# committed one.
|
||||
#
|
||||
# The diff gate above depends on bun-version being pinned: the minifier allocates
|
||||
# identifiers differently across Bun releases, so an unpinned runner rebuilds to
|
||||
# different bytes (measured: a bun 1.4.2 rebuild of a 1.3.14-built bundle differed only
|
||||
# by renamed minified variables). Keep the pin in step with the committed bundle.
|
||||
bun test src/server.test.ts
|
||||
|
||||
- name: Verify Binary Compilation
|
||||
run: |
|
||||
mkdir -p dist/bin
|
||||
|
||||
Reference in new issue
Block a user