- TypeScript
- Python
Uses Node.js 18+, Express, the MCP TypeScript SDK, React, and Vite with
vite-plugin-singlefile to bundle each widget into a standalone HTML file.Initialise the project
Create a new Node.js project:Edit
package.json to set the module type and add build scripts:package.json
Install dependencies
Install runtime dependencies:Install dev dependencies (TypeScript, Vite, React, Tailwind, types):
Configure TypeScript
Create Create
tsconfig.json at the project root:tsconfig.json
tsconfig.server.json for server-only compilation:tsconfig.server.json
Configure environment variables
Create a Place the Gr4vy private key
.env file using the values from your Gr4vy sandbox dashboard:.env
.pem file in your project root. You can download this from your Gr4vy dashboard under Settings → Manage Integrations → Add an API Key.Confirm the project structure
When complete, your project should look like this:With the project scaffolded, continue to Build the MCP server.