Skip to main content
1

Install the CLI

Verify the installation:
2

Authenticate

You need a personal access token (create one in the Jelou dashboard).
In CI you can pass the token directly: jelou login --token jfn_pat_your_token
3

Initialize a project

Create a directory and run jelou functions init:
This generates the base files:
4

Write your function

Replace the contents of index.ts with a function that looks up customers by phone:
index.ts
5

Run locally

Start the development server:
Your server reloads automatically when you edit files.
6

Test with curl

In another terminal, send a request:
Response:
You can also test the MCP endpoint at http://localhost:3000/mcp and the health check at http://localhost:3000/__health.
7

Configure secrets

Before deploying, add the environment variables your function needs:
8

Deploy to production

Your function is protected by default. To call it you need a platform API key — create one at apps.jelou.ai, in the app configuration section, and send it as Authorization: Bearer sk_.... See the authentication guide for details.
Your function is now available in production. Jelou AI agents can invoke it as an MCP tool automatically.
9

Verify in production

Monitor logs in real time:

Next steps