bundled-cleanup-worker
Removes bundled MCP connector infrastructure from rebel-app and updates catalog
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Removes bundled MCP connector infrastructure from rebel-app and updates catalog
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Route Rebel app verification to the cheapest reliable path, then launch, drive, or screenshot the Electron app when the selected recipe requires it.
Removes dead bundled MCP connector code and updates build/package configuration
Implements OSS MCP contribution flow features using CHIEF_ENGINEER workflow patterns — TDD, IPC contracts, store creation, UI wiring
Fixes startup migration ordering, reconnect UI flows, and updates tests for migrated connectors
Ports a bundled MCP connector to the mcp-servers repo as an OSS npm package
Creates and modifies skill files, workflow docs, reference docs, CI workflows, and TypeScript scripts following existing rebel-system and repo patterns.
| name | bundled-cleanup-worker |
| description | Removes bundled MCP connector infrastructure from rebel-app and updates catalog |
NOTE: Startup and cleanup are handled by worker-base. This skill defines the WORK PROCEDURE.
Use for features that remove a migrated connector's bundled infrastructure from rebel-app. This includes: updating the connector catalog, removing BUNDLED_MCP_CATALOG entries, payload builders, script resolvers, generated bundles, and source directories.
None.
.factory/library/architecture.md for the removal pattern.resources/connector-catalog.json in rebel-app.bundled-retell-ai).provider from "bundled" to "rebel-oss".mcpConfig object:{
"command": "npx",
"args": ["-y", "@mindstone-engineering/mcp-server-<name>@<version>"],
"env": {
"<ENV_VAR>": "${<ENV_VAR>}"
}
}
The env section should include all required environment variables as placeholders. For OAuth connectors, include CLIENT_ID, CLIENT_SECRET, and CONFIG_DIR. The bridge state env var is injected at runtime by Rebel -- do NOT add it to the catalog.
src/main/services/bundledMcpManager.ts.BUNDLED_MCP_CATALOG object.bundledMcpManager.ts, find and remove:
resolve<Name>ServerScript() functionbuild<Name>Payload() functionrg 'resolve<Name>ServerScript|build<Name>Payload' src/
Check and remove from these files if the connector is present:
mcpConfigManager.ts (src/core/services/mcpConfigManager.ts):
BUNDLED_SERVER_TO_CATALOG_ID if presentINSTANCE_PREFIX_TO_CATALOG_ID if presentGENERATED_MCP_SCRIPT_NAMES if presentbundledMcpCloudRegistration.ts (src/main/services/bundledMcpCloudRegistration.ts):
oauthCredentials.ts (src/core/services/oauthCredentials.ts):
rg 'resolve<Name>Credentials' src/ --glob '!*.test.*'
resources/mcp/<source-dir>/resources/mcp-generated/<name>/scripts/mcp-config.json for entries that reference the removed connector and update if needed.rg '<connector-name>' src/ test/ scripts/ --glob '*.test.*'
scripts/__tests__/mcp-smoke.test.ts for expected tool counts or server references.scripts/validate-mcp-bundles.ts for references.Run ALL verification commands:
npm run build
npm run validate:fast
npm run test
All must pass. If they fail, diagnose and fix. Common issues:
Also verify clean removal:
rg 'resolve<Name>ServerScript|build<Name>Payload|<BUNDLED_CATALOG_KEY>' src/
Must return zero matches.
Stage only the files you changed. Commit with:
refactor(mcp): Remove bundled <name> connector infrastructure. Migrated to @mindstone-engineering/mcp-server-<name> (rebel-oss).
- Catalog entry updated to provider: rebel-oss
- Removed BUNDLED_MCP_CATALOG entry, payload builder, script resolver
- Removed bundled source directory resources/mcp/<source-dir>/
{
"salientSummary": "Removed Retell AI bundled infrastructure from rebel-app. Updated catalog to rebel-oss, removed BUNDLED_MCP_CATALOG entry, payload builder, script resolver, and source directory. validate:fast and npm test both pass.",
"whatWasImplemented": "Updated resources/connector-catalog.json (provider: rebel-oss, added mcpConfig). Removed from bundledMcpManager.ts: RetellAI BUNDLED_MCP_CATALOG entry, resolveRetellAIServerScript(), buildRetellAIPayload(). Removed resources/mcp/retell-ai/ directory. Updated test expectations.",
"whatWasLeftUndone": "",
"verification": {
"commandsRun": [
{ "command": "npm run build", "exitCode": 0, "observation": "Build succeeded" },
{ "command": "npm run validate:fast", "exitCode": 0, "observation": "All validations pass" },
{ "command": "npm run test", "exitCode": 0, "observation": "All tests pass" },
{ "command": "rg 'resolveRetellAIServerScript|buildRetellAIPayload|RetellAI.*BUNDLED' src/", "exitCode": 1, "observation": "No orphaned references (exit 1 = no results)" }
],
"interactiveChecks": []
},
"tests": {
"added": []
},
"discoveredIssues": []
}