zerolith.ioChecking…
Tutorial // Claude Code

Deploy a function from Claude Code

Four steps to connect Claude Code to Zerolith's MCP server, then ask the agent to write, deploy and invoke a Python or Node.js function hosted in France.

Prerequisites: a verified Zerolith account (the signup credit is enough) and Claude Code installed.

Install Claude Code

Install Claude Code following Anthropic's official documentation, then open it in any folder. No particular project is needed: the MCP server is remote and drives your account, not your disk.

Add the Zerolith MCP server

Register the remote server with a single command. The transport is HTTP, so there is no binary to launch and no local process to keep alive.

Claude Code
claude mcp add --transport http zerolith https://zerolith.io/mcp

Then check that the server is registered and connected:

Claude Code
claude mcp list

Authorize access to your account

The first time a tool is used, Claude Code opens your browser on Zerolith's authorization page. Sign in, approve, and the agent receives an access token.

No API key is copied into the configuration: the flow is OAuth 2.1 with PKCE, and the resulting token is only valid for this server. To revoke access, change your password; live grants drop immediately.

Ask for the deployment

Describe what you want in plain language. The agent picks the tools (deploy_function, update_function, invoke_function…) and hands you back the function URL.

Your request to the agent
> Deploy a Python function "hello" that returns
  {"message": "hello, <name>"} from the ?name query parameter,
  make it public, then call it with name=neo.

The function is then deployed in your account's isolated namespace, scales back to zero instances when nobody calls it, and is only billed while it runs.

Troubleshooting

  • No tools show up: check that the server is listed and connected, and that the OAuth authorization was approved in the browser.
  • A deployment is refused: an unverified account cannot write, so confirm the email you received at signup.
  • Invocations answer 402: credit is exhausted. Calls are refused at the edge, before a pod is even woken; top the account up to resume.

Frequently asked questions

Does this work with Cursor or VS Code?

Yes. Only the registration step differs: those clients are configured with a JSON file pointing at the same HTTP URL. Authorization and usage are identical.

Do I need an API key first?

Not for MCP: authorization happens over OAuth in the browser. An API key only becomes useful to call your functions from another program.

What does deploying a test function cost?

The signup credit comfortably covers a demo function. An idle function costs nothing, and you only pay the GB-seconds actually executed, plus a per-invocation fee.

How do I delete what the agent created?

Ask the agent (delete_function tool), or delete the function from the web app. Both surfaces act on the same resources.

Try it with your agent

Create an account, add the MCP server, and let Claude Code deploy your first function.

Get started »