chore(mcp): upgrade docusaurus-plugin-mcp-server to 0.13.0, drop patch#125
Merged
Conversation
…op patch
0.13.0 exposes the FlexSearch index config as a supported plugin option
(`flexsearch`), so the hand-written patch-package patch that previously
forced the index small is no longer needed. The patch was version-pinned
to 0.11.0 and silently failed to apply on any bump (patch-package only
warns, npm ci still exits 0) — which would have shipped the plugin's
OOM-prone defaults (tokenize "forward", resolution 9, depth-2 context;
~290MB index) to production unnoticed.
Replaces the patch with explicit config in both consumers, which must
stay in sync:
- docusaurus.config.ts — build-time index generation
- mcp-server/server.mjs — runtime query-side index reconstruction
Both set `flexsearch: { tokenize: "strict", resolution: 3, context: false }`.
The plugin's default encode() already lowercases + stems, so it is not
overridden.
Also ignores docusaurus-plugin-mcp-server in dependabot.yml — it must be
upgraded manually so the two configs are kept in sync and verified.
Verified:
- root `npm run build` -> search-index.json is 2.8MB (cap is 50MB)
- both `npm ci` install clean (lockfiles in sync)
- mcp-server `node test.mjs` -> 8 passed
- end-to-end search smoke test against the built index returns relevant
hits for payment / tokenization / webhook signature / refund
Supersedes Dependabot PRs #123 and #124 (the docusaurus-plugin-mcp-server
portion); the 11 other root bumps in #124 are handled separately.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This was referenced Jun 26, 2026
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.
What
Upgrades
docusaurus-plugin-mcp-server0.11.0 → 0.13.0 the safe way, and removes the fragile patch-package patch that blocked the two open Dependabot PRs (#123, #124).Why the Dependabot PRs weren't mergeable
Both #123 and #124 bumped this package, and both would have broken the deploy:
docusaurus-plugin-mcp-server+0.11.0.patch, in both root andmcp-server/patches/) forced the FlexSearch index to a small footprint. The plugin's defaults —tokenize: "forward",resolution: 9, depth-2 bidirectional context — balloon the generated index to ~290MB and OOM the mcp service on deploy.patch-packageonly warns;npm cistill exits 0). The plugin would have run unpatched in production.package.json↔ lockfile desync (npm cihard-failed, EUSAGE).The fix
0.13.0 exposes the FlexSearch index config as a supported
flexsearchplugin option — so no patch is needed. Config now lives in the two consumers (kept in sync):docusaurus.config.ts— build-time index generationmcp-server/server.mjs— runtime query-side index reconstructionBoth set
flexsearch: { tokenize: "strict", resolution: 3, context: false }. The plugin's defaultencode()already lowercases + stems, so it's not overridden. Both patch files are deleted.docusaurus-plugin-mcp-serveris also ignored independabot.yml(both ecosystems) — it must be upgraded manually so the two configs stay in sync and the index size is re-verified.Verification
npm run build→ generatedsearch-index.jsonis 2.8MB (cap is 50MB) ✅npm ciinstall clean — lockfiles in sync ✅npm run typecheck✅mcp-servernode test.mjs→ 8 passed ✅payment,tokenization,webhook signature,refund✅ (proves query-side config matches the index)Follow-up
Supersedes the
docusaurus-plugin-mcp-serverpart of #123 and #124. After this merges, #123 is closed and #124 is recreated (Dependabot, now ignoring this package) down to its 11 routine root bumps.🤖 Generated with Claude Code