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
@@ -1,28 +0,0 @@
|
||||
import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
||||
import { spawnSync } from "node:child_process";
|
||||
import { dirname, resolve } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const bun = process.env.BUN_BIN || "bun";
|
||||
|
||||
function run(args) {
|
||||
const result = spawnSync(bun, args, {
|
||||
cwd: root,
|
||||
stdio: "inherit"
|
||||
});
|
||||
if (result.error) throw result.error;
|
||||
if (result.status !== 0) {
|
||||
throw new Error(`${bun} ${args.join(" ")} failed with status ${result.status}`);
|
||||
}
|
||||
}
|
||||
|
||||
const mcpOutput = resolve(root, "dist/mcp/server.js");
|
||||
mkdirSync(dirname(mcpOutput), { recursive: true });
|
||||
// The MCP bundle imports the generated embedded Skill manifest. Regenerate it
|
||||
// before bundling so version bumps and documentation edits cannot leave the
|
||||
// tracked bundle one build behind the source tree.
|
||||
run(["run", "scripts/generate-embedded-skill.mjs"]);
|
||||
run(["build", "src/server.ts", "--minify", "--target=node", "--outfile", mcpOutput]);
|
||||
writeFileSync(mcpOutput, readFileSync(mcpOutput, "utf8").replace(/[ \t]+$/gm, ""));
|
||||
run(["run", "build:binary"]);
|
||||
@@ -105,9 +105,8 @@ if (existsSync(globalSkillDir)) {
|
||||
}
|
||||
|
||||
// 6. Rebuild bundles
|
||||
console.log("==> Rebuilding OpenAPI, plugin, and binary bundles...");
|
||||
console.log("==> Rebuilding OpenAPI and binary bundles...");
|
||||
execSync("bun run openapi:bundle", { cwd: ROOT, stdio: "inherit" });
|
||||
execSync("bun run build:plugin", { cwd: ROOT, stdio: "inherit" });
|
||||
execSync("bun run build:binary", { cwd: ROOT, stdio: "inherit" });
|
||||
|
||||
console.log("\n🎉 Successfully bumped version to " + nextVersion + "!");
|
||||
|
||||
Reference in new issue
Block a user