Speakeasy Logo
Skip to Content
Gram DocumentationGram FunctionsDeploy as MCP

Build and Deploy

Deploying Gram Functions is as simple as writing them. Deploying will upload your code to Gram and create the tools you’ve defined. You can then take advantage of all the Gram platform offers to host your tools as MCP servers, combine them into toolsets, build multi-tool workflows, and more.

Build

To build your tools, run the following command:

npm run build

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

Deploy

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

npm run push

This will upload your tools to Gram and create 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