---
title: "MCP tools · Tempo AI Platform docs"
description: "Every platform tool as a streamable-HTTP MCP server, paid from your Tempo Key or with MPP over MCP, for Codex, Claude Code and any MCP client."
url: "https://gateway.tempo-dev.workers.dev/docs/mcp"
---

> Every page of the Tempo AI Platform is Markdown at its URL with .md, or with Accept: text/markdown. The index of every page is https://gateway.tempo-dev.workers.dev/llms.txt, the API https://gateway.tempo-dev.workers.dev/openapi.json and the MCP server https://gateway.tempo-dev.workers.dev/mcp.

# Every tool over MCP

`POST /mcp` serves the platform's storage, git, compute, browsers and models as MCP tools, paid from your Tempo Key or with MPP over MCP, and a free `send_feedback` tool that an agent calls to report a problem or ask for a feature. It is a stateless streamable-HTTP server, so every MCP client that speaks HTTP can use it, and nanocode-mpp registers it as its built-in `gateway` server, so every wallet's agent gets its own storage and sandboxes.

[Get your Tempo Key](https://gateway.tempo-dev.workers.dev/key.md) · [Set it up](#setup)

## Set it up

### Codex

[The Codex installer](https://gateway.tempo-dev.workers.dev/docs/keys.md#codex) adds the server as `tempo`, with a helper that hands Codex the key (Codex 0.152 or later). To add it yourself with the key in `TEMPO_KEY`, put this in `~/.codex/config.toml`:

**Codex config**

```json
[mcp_servers.tempo]
url = "https://gateway.tempo-dev.workers.dev/mcp"
bearer_token_env_var = "TEMPO_KEY"
```

### Claude Code

```sh
claude mcp add --transport http tempo https://gateway.tempo-dev.workers.dev/mcp --header "Authorization: Bearer $(cat ~/.codex/tempo-gateway.key)"
```

### Any other client

Point it at `https://gateway.tempo-dev.workers.dev/mcp` over streamable HTTP with the header `Authorization: Bearer sk-tempo-…`.

## It renders UI

The server is an [MCP App](https://modelcontextprotocol.io/extensions/apps/overview): hosts that support MCP Apps, such as Claude, ChatGPT, VS Code and Goose, show agents, turns, usage, sandboxes, personas and teams as an interactive view in the chat, not as JSON. An agent opens as a live chat: its turns, its thinking, each tool call and its answers stream in as they happen, and you can message, steer or stop it from the view, expand it to fullscreen, and the conversation learns what the agent answered. Every other tool renders in the same view, and from any result you can edit its input and run it again, search and run any of the server's tools from a form, open, edit or delete a row, or ask the chat about it. `agents_events` pages the same events for any client. Other clients get the same tools as text. In Codex, the ChatGPT app included, turn on `enable_mcp_apps = true` under `[features]` in `~/.codex/config.toml` and restart it.

The view is one resource, `ui://tempo-gateway/app.html`, that the tools `agents_list`, `agents_create`, `agents_prompt`, `agents_turn`, `agents_update`, `compute_list`, `compute_status`, `personas_list`, `teams_list` and `traces_stats` name in `_meta.ui.resourceUri`. It loads nothing from the network and talks only to its host.

## How calls are paid

- **With a Tempo Key**\
  Send it as `Authorization: Bearer`, and every paid tool is paid from the key, with nothing more to do. The tools act on the key's wallet, in the app the `app` argument names (default the `Gateway-App` header, else `default`). A key that is unknown, revoked or expired answers 401 for every call.
- **With MPP over MCP**\
  Without a key, an unpaid call answers JSON-RPC `-32042` with the MACH and OUSD session challenges, and the client retries with the credential in `_meta["org.paymentauth/credential"]`. The tools act on the wallet that paid.
- **Shared items**\
  The kv, bucket and git tools take `owner` to reach another wallet's items that a grant covers, as `Gateway-Owner` does over HTTP.
- **Prices**\
  A tool costs what its `/v1` route costs, and a malformed call fails validation before anything is charged. [Pricing](https://gateway.tempo-dev.workers.dev/docs/pricing.md) lists them.

## Tools

In an agent's cells the same tools are `tools.mcp__gateway__*`, on the agent's key in its app, except `fetch`: a cell's own `fetch` already pays.

| Tools                                                                                                                                                                                                  | What they do                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| capabilities                                                                                                                                                                                           | The tools, the operation each is priced as, prices and limits; free                                                                                                                                                              |
| send_feedback                                                                                                                                                                                          | Report a problem, ask for a feature or reach support, and get an fb\_… id; free                                                                                                                                                  |
| stake_feedback, feedback_status                                                                                                                                                                        | The same report with a $0.01 deposit, returned with a reward if the team accepts it, and where a report stands                                                                                                                   |
| public_read                                                                                                                                                                                            | Read another wallet's public kv value, object or repository, as [/p](https://gateway.tempo-dev.workers.dev/docs/memory.md#public) does; free                                                                                     |
| ai_generate, ai_embed, ai_responses, ai_messages                                                                                                                                                       | The [model routes](https://gateway.tempo-dev.workers.dev/docs/models.md) without streaming, metered per token                                                                                                                    |
| kv_get, kv_set, kv_list, kv_delete, kv_visibility                                                                                                                                                      | [JSON values](https://gateway.tempo-dev.workers.dev/docs/memory.md#kv)                                                                                                                                                           |
| bucket_put, bucket_get, bucket_head, bucket_list, bucket_delete, bucket_visibility                                                                                                                     | [Objects](https://gateway.tempo-dev.workers.dev/docs/memory.md#bucket)                                                                                                                                                           |
| git_create, git_list, git_commit, git_files, git_read, git_log, git_diff, git_branches, git_remote, git_visibility, git_delete                                                                         | [Repositories](https://gateway.tempo-dev.workers.dev/docs/memory.md#git)                                                                                                                                                         |
| grants_set, grants_list, grants_received, grants_revoke, teams\_\*                                                                                                                                     | [Sharing](https://gateway.tempo-dev.workers.dev/docs/memory.md#sharing) with other wallets and teams                                                                                                                             |
| compute_create, compute_exec, compute_stream, compute_spawn, compute_logs, compute_read, compute_write, compute_renew, compute_snapshot, compute_status, compute_list, compute_terminate, compute_hand | [Sandboxes](https://gateway.tempo-dev.workers.dev/docs/compute.md#compute); compute_stream returns the collected output, compute_logs waits up to 120 s for a job, and compute_hand and compute_create's attach need a Tempo Key |
| compute_volume_create, compute_volume_renew, compute_volume_list, compute_volume_files, compute_volume_delete                                                                                          | [Volumes](https://gateway.tempo-dev.workers.dev/docs/compute.md#volumes) mounted with compute_create's volumes                                                                                                                   |
| browser_create, browser_status, browser_extend, browser_list, browser_close                                                                                                                            | [Cloud browsers](https://gateway.tempo-dev.workers.dev/docs/compute.md#browsers)                                                                                                                                                 |
| github_status, github_setup                                                                                                                                                                            | Act as the [GitHub account](https://gateway.tempo-dev.workers.dev/docs/services.md#github) the wallet connected: git and gh in a sandbox; a Tempo Key with GitHub access only, free                                              |
| fetch                                                                                                                                                                                                  | Call any https URL and pay its [MPP 402](https://gateway.tempo-dev.workers.dev/docs/services.md#fetch) from the key, up to maxUsd; a Tempo Key only                                                                              |

[<- Services](https://gateway.tempo-dev.workers.dev/docs/services.md) · [Compute ->](https://gateway.tempo-dev.workers.dev/docs/compute.md)
