Embed documentation and examples in tome-builder MCP server at build time#1741
Conversation
- Created `scripts/bundle-assets.js` to read docs and tomes at build time and generate `src/assets.ts`. - Added `prebuild` script to `package.json` to trigger asset bundling. - Refactored `src/index.ts` to use embedded assets instead of runtime file reading. - Removed unused `src/docs.ts` and `src/examples.ts`. - Added `src/assets.ts` to `.gitignore`. Co-authored-by: JonLMyers <14082284+JonLMyers@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change modifies the
vscode-tome-builderMCP server to embed documentation and tome examples at build time. This removes the runtime dependency on the repository file structure and allows the extension to be distributed with all necessary content. A new build scriptbundle-assets.jsgenerates asrc/assets.tsfile containing the content ofdocs/andtavern/tomes/, which is then imported by the server. The generated file is gitignored.PR created automatically by Jules for task 18259529299702978922 started by @JonLMyers