Skip to content

Embed documentation and examples in tome-builder MCP server at build time#1741

Open
JonLMyers wants to merge 1 commit intoJonLMyers/Eldritch-vscode-Extensionfrom
vscode-tome-builder-embed-assets-18259529299702978922
Open

Embed documentation and examples in tome-builder MCP server at build time#1741
JonLMyers wants to merge 1 commit intoJonLMyers/Eldritch-vscode-Extensionfrom
vscode-tome-builder-embed-assets-18259529299702978922

Conversation

@JonLMyers
Copy link
Collaborator

This change modifies the vscode-tome-builder MCP 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 script bundle-assets.js generates a src/assets.ts file containing the content of docs/ and tavern/tomes/, which is then imported by the server. The generated file is gitignored.


PR created automatically by Jules for task 18259529299702978922 started by @JonLMyers

- 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>
@google-labs-jules
Copy link
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to 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