Skip to Content

Build and deploy

Deploying Gram Functions is as simple as writing them. Deploying uploads your code to Gram and creates the tools you’ve defined. You can then take advantage of all that the Gram platform offers for hosting your tools as MCP servers, combining them into toolsets, building multi-tool workflows, and more.

Build

To build your tools, run the following command:

npm run build

This compiles your tools into a zip file that can be deployed to Gram.

Deploy

To deploy your tools to Gram, run the following command:

npm run push

This uploads your tools to Gram and creates the tools you’ve defined. In the Gram dashboard , you will see the function source you just uploaded and the tools it created.

Gram Dashboard, showing the function source you just uploaded

Next steps

Now that you’ve deployed your tools, you can start using them in MCP servers, combine them into toolsets, build multi-tool workflows, and more. Head to the Build MCP documentation to learn more.

Last updated on