From request to document operation
AI clients send structured tool requests to a TypeScript MCP service. Shared schemas validate the requests before a module in the Game Master browser calls the public Foundry APIs. The response returns through the same bridge.
The server and browser module are separate components. Optional headless Chromium reauthentication supports the connection, and a Plutonium adapter extends the document operations where available.
Engineering scope
- Package the Node.js service for Docker, support headless Chromium reauthentication and include type checks and automated workflow tests.
How it works
AI client
Discover capabilities and invoke structured tools through an MCP client.
MCP server
Validate tool inputs against shared schemas and coordinate document operations. The service can run independently in Docker.
GM bridge
A module in the Game Master browser bridges server requests to the application. Headless Chromium is an optional authentication path.
Foundry VTT
Read and manipulate documents through public APIs, with an optional Plutonium adapter and deletion confirmed in two steps.