fmerian

Gram Functions - Define agent tools in TypeScript & deploy as MCP servers

Gram Functions is a simple TypeScript framework that lets you define AI agent tools in code and deploy them as MCP servers to the Gram platform. No protocol knowledge or infrastructure management required. npm create @gram-ai/function

Add a comment

Replies

Best
Nolan Di Mare Sullivan
Hey PH! Nolan from Speakeasy here 👋 We're excited to share Gram Functions with you today, our open-source TypeScript framework for building agent tools. Since launching Gram, we've learned that APIs aren't always the right abstraction for people building MCP servers. Sometimes the endpoints don't exist, don't map to actual business operations, or agents need capabilities that go beyond HTTP calls (like querying databases directly). Gram Functions solves this by letting you define agent tools directly in TypeScript code. No OpenAPI specs. No MCP protocol expertise. No infrastructure to manage. The framework is fully open source on GitHub. We'd love a star if you find it useful! Whether you're wrapping internal APIs, orchestrating complex business logic, or building entirely new agent capabilities, Gram Functions gets you from code to production fast. Can't wait to see what you all build with it 🚀
Chilarai M

Nice! Do you also support the creation of SDKs from the Postman spec?

Nolan Di Mare Sullivan

@chilarai we don't support conversion in our CLI, but we do often work with customers to get a process set up for generating an OpenAPI spec from their backend.

Also, you didn't hear it from me, but Claude is pretty good at converting Postman Collections to OpenAPI if you just want something fast ;)

Chilarai M

@ndimares is awesome. Yeah, Claude, man :)