Skip to content

fix(mcp): bundle docs server in package - #7

Merged
crup merged 1 commit into
mainfrom
next
Apr 7, 2026
Merged

fix(mcp): bundle docs server in package#7
crup merged 1 commit into
mainfrom
next

Conversation

@crup

@crupcrup commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Bundles the optional MCP docs server into the published package so users can run it from npm instead of the source repository.

Changes:

  • Adds a minified Node build at dist/mcp/server.js.
  • Adds the npm bin react-timer-hook-mcp.
  • Adds a package export for ./mcp/server.
  • Makes the MCP server self-contained instead of reading docs-site/static/llms-full.txt from the source repo.
  • Adds pnpm mcp:check and runs it in CI and the stable release verify stage.
  • Updates README and docs with npx and node_modules/.bin MCP client config.
  • Adds MCP docs server to the size report.

Validation run locally:

  • pnpm typecheck
  • pnpm test
  • pnpm build
  • pnpm docs:build
  • pnpm readme:check
  • pnpm mcp:check
  • pnpm size
  • pnpm pack --dry-run
  • git diff --check

Release note:

  • npm latest is already 0.0.2, so this should publish as 0.0.3 after merge.

@github-actions

Copy link
Copy Markdown

Bundle size report

EntryFilesRawGzipBrotliRaw deltaGzip deltaBrotli delta
core24.44 kB1.52 kB1.40 kB0 B0 B0 B
timer group add-on310.93 kB3.83 kB3.50 kB0 B0 B0 B
schedules add-on38.62 kB3.02 kB2.78 kB0 B0 B0 B
duration helper1318 B224 B192 B0 B0 B0 B
diagnostics helper1105 B115 B90 B0 B0 B0 B
MCP docs server13.80 kB1.63 kB1.40 kB+3.80 kB+1.63 kB+1.40 kB
core CJS14.71 kB1.63 kB1.50 kB0 B0 B0 B
timer group CJS111.02 kB3.86 kB3.54 kB0 B0 B0 B
schedules CJS18.71 kB3.04 kB2.81 kB0 B0 B0 B
duration CJS1808 B475 B424 B0 B0 B0 B
diagnostics CJS1605 B367 B326 B0 B0 B0 B

@crup
crup merged commit cf26618 into mainApr 7, 2026
2 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@crup