refactor: fold ghost-mcp into ghost-ui#56
Merged
nahiyankhan merged 1 commit intomainfrom Apr 24, 2026
Merged
Conversation
ghost-mcp had no identity independent of ghost-ui — its only job was re-exposing ghost-ui's registry.json over the MCP transport. Move the six source files into packages/ghost-ui/src/mcp/ and expose the "ghost-mcp" bin from ghost-ui directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ghost-mcppackage intopackages/ghost-ui/src/mcp/. Its only job was re-exposingghost-ui'sregistry.jsonover the MCP transport — no identity independent ofghost-ui, no separate consumers, no reason to carry a whole package.ghost-uinow ships theghost-mcpbin directly. A newtsconfig.mcp.jsonbuilds the Node-only code todist-mcp/viatsc, kept out of the Vite lib pipeline. Drops thescripts/copy-assets.mjsstep —data.tsreadsregistry.jsonand.shadcn/skills.mdstraight off disk viaimport.meta.url. Aligns on zod v4 (drops the v3 pin).ghost-ui,apps/docs) and a "Repo layout" section in the rootREADME.mdso a new reader can see the shape at a glance: main tool (ghost-drift) + reference design system (ghost-ui, which now ships the MCP bin) + docs site (apps/docs).ghost-ui/mcpsubpath). Nothing imported fromghost-mcpas a library; the library surface can be added later in a 5-line PR if a real consumer appears.Test plan
pnpm installclean (MCP SDK added toghost-ui; 115 transitive deps dropped along withghost-mcp)pnpm --filter ghost-ui build:mcpsucceeds;dist-mcp/populated with bin + declarationspnpm build(compositetsc --build— now referencingpackages/ghost-ui/tsconfig.mcp.jsonin place of the deletedpackages/ghost-mcp) succeedspnpm check(biome + typecheck + file-sizes + docs + cli-manifest) passesdist-mcp/bin.jsresponds to a stdioinitializehandshake with the expected{ tools, resources }capabilitiesjust check,just test,just build) all passNo changeset —
ghost-uiis in the changesets ignore list (private).🤖 Generated with Claude Code