# What is MCP, and what can an AI assistant do with Tillcast's MCP server?

> MCP is the open standard that lets AI assistants use tools in other software. What Tillcast's MCP server offers, which key to give it and which clients Tillcast has tried.

- Published: 2026-11-12
- Tags: mcp, ai, agents, api, protocols
- Author: Tillcast
- Canonical URL: https://tillcast.com/blog/what-is-mcp/
- Blog: https://tillcast.com/blog/

The **Model Context Protocol (MCP)** is an open standard that lets an AI assistant use programs it does not contain. Such a program is an **MCP server**. It offers **tools** (actions the model can choose), **resources** (data to read) and **prompts** (ready-made instructions), as JSON-RPC 2.0 messages over **stdio** for a program on your machine or **Streamable HTTP** for a server on the internet. Anthropic published MCP in November 2024, and since December 2025 it has been a project of the Agentic AI Foundation, part of the Linux Foundation. Tillcast runs an MCP server for its API. This post shows what an assistant can do with it, which key to give it and which clients Tillcast has tried.

## The Tillcast MCP server in short

| | |
| --- | --- |
| Address | `https://api.tillcast.com/mcp` |
| Sign-in | Your API key as a bearer token: the header `Authorization: Bearer <your key>` |
| Transport | MCP over HTTP, JSON only: each request is one `POST` that carries one message and gets one JSON answer (a notification gets `202` and no body), with no event stream and no session |
| Protocol revisions | 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26 |
| Tools | 28, in six groups: the organization, customers, locations, printers, jobs with the test page, and a receipt preview |

The 27 tools that stand for an operation of the REST API call it, with the same key; `preview_document`, which draws a receipt, has no REST counterpart. Tillcast runs no model: your assistant does. A tool has a name and a JSON Schema for its arguments, and may have a description (every Tillcast tool has one); the assistant reads them when it connects, so it needs no SDK and no earlier knowledge of Tillcast.

**Diagram: One tool call, in six steps.**

A person gives an AI assistant the address of an MCP server and a key. The assistant asks the server which tools it offers, and the server answers with a list of tools and what each one needs. When the person asks for something in plain words, the assistant picks a tool and sends the request, the server runs the action with the permissions of the key, and the assistant tells the person what happened.

1. A person connects an AI assistant to an MCP server by giving it the server's address and a key.
2. The assistant asks the server which tools it offers, and the server answers with a list of tools and what each one needs.
3. The person asks for something in plain words.
4. The assistant picks a tool and sends the request with the right arguments.
5. The server runs the action with the permissions of the key and returns the result.
6. The assistant reads the result and tells the person what happened.

## What an assistant can do with it

An organization has customers, a customer has locations, a location has printers, and a printer receives jobs. The tools follow that order, and the server hands the assistant a short guide (`tillcast://guide/start`) that says so.

- **Look around.** `get_organization` answers with the organization and the scopes of the key, so the assistant sees what it may do. `list_customers`, `list_locations`, `list_printers` and the `get_` tools read what exists. A key limited to one customer sees only that customer.
- **Set up a venue.** `create_customer`, `create_location` and `create_printer` make what is missing, and there are tools to update and delete them, to move a printer, and to suspend and reactivate a customer or a location. The answer to `create_printer` holds the printer's address once: the assistant shows it to the person, who types it into the printer. `rotate_printer_secret` makes a new address and stops the old one at once.
- **Check a printer.** `get_printer` shows its status, and `test_print` queues a test page.
- **Draw a receipt before it prints.** `preview_document` takes the same `document` of blocks (or `receiptline` text) as a job and returns the receipt as text, the warnings the job would give and the request `create_job` would send (its method, its path and a hash of its body: the body itself is for the person's view, not for the model). It prints nothing, bills nothing and keeps no copy of the receipt: it only counts the organization's previews for the day. With `paper` set to `58mm` or `80mm` it needs no printer, and with `printer` it shows the receipt on that printer's own paper.
- **Print and follow the job.** `create_job` queues a job, `get_job` shows its status until it is `printed`, `failed`, `expired` or `cancelled`, `list_jobs` lists them, and `cancel_job` works while a job is `queued`.

Besides the tools, the server offers resources that teach an assistant what to send, the block types of a receipt (`tillcast://guide/blocks`), the error codes and two example receipts, and three prompts: `print_receipt`, `set_up_customer` and `check_printer`. When a document is wrong, the error names the block and the field, as in `document[3].rows[1][0].size`, so the assistant can fix it and send it again. Every create takes an `idempotency_key`, as the `Idempotency-Key` header does in the REST API, so that a call repeated after a timeout makes one thing.

A conversation might go like this. A person asks: "Preview a receipt for table 7 with two items on an 80 mm printer." The assistant calls `preview_document` and shows the paper as text. When the person agrees, it calls `create_job` and then `get_job`. On the wire, that call is one JSON-RPC message in one HTTP `POST`. A client asks for the list of tools (`tools/list`) before it, so this is only the tool call, written for revision 2026-07-28:

```sh
curl -s https://api.tillcast.com/mcp \
  -H "Authorization: Bearer $TILLCAST_API_KEY" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H 'MCP-Protocol-Version: 2026-07-28' \
  -H 'Mcp-Method: tools/call' \
  -H 'Mcp-Name: preview_document' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"preview_document","arguments":{"paper":"80mm","document":[{"type":"text","text":"Harbour Cafe","align":"center","bold":true},{"type":"text","text":"Table 7","align":"center"},{"type":"table","columns":["*",{"width":9,"align":"right"}],"rows":[["Flat white","3.40"],["Lemon cake","4.20"],{"type":"rule"},[{"text":"Total","bold":true},{"text":"7.60","bold":true}]]}]},"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"curl","version":"1.0.0"},"io.modelcontextprotocol/clientCapabilities":{}}}}'
```

## Which key to give

Make the key in the dashboard, under API keys. The server shows a key only the tools its scopes allow, so the key is also the list of what the assistant can do, and a key can never create or change keys.

| You want the assistant to | Give it | It sees |
| --- | --- | --- |
| Look around and draw receipts. Nothing prints | The Read only preset | 10 tools |
| Print receipts and test pages for one customer | The Printing preset, limited to that customer | 9 tools, among them `create_job` and `test_print` |
| Set customers, locations and printers up, once | The Installer preset, for that session only | 23 tools to read, create, change and delete them, none that queues a job |

Start with Read only. It can already list your customers and printers and draw a receipt.

## Which assistants can connect

An assistant should work with Tillcast if it speaks MCP over Streamable HTTP, can send an `Authorization` header and sends no `Origin` header: a page in a browser sends one, and the server answers it with `403`. **Tried** means that the real client, in the version named, connected with a key to a local build of the Tillcast server. The other rows follow the vendor's documentation, and a client that is not in the table was not tried.

| Client | Status | How it sends the key |
| --- | --- | --- |
| [Claude Code](https://code.claude.com/docs/en/mcp) | Tried with 2.1.301 | `--header` option or `.mcp.json` |
| [Gemini CLI](https://geminicli.com/docs/tools/mcp-server/) | Tried with 0.65.0 | `--header` option |
| [Codex CLI](https://learn.chatgpt.com/docs/extend/mcp) | Configuration accepted by 0.163.0, no session run | `bearer_token_env_var` in `config.toml` |
| [Cursor](https://cursor.com/docs/mcp) | From the documentation, not tried | `headers` in `mcp.json` |
| [VS Code](https://code.visualstudio.com/docs/agents/reference/mcp-configuration) | From the documentation, not tried | `headers` in `mcp.json`, with the key asked for at start; a server set up this way is not passed on to Copilot harness sessions |
| [Zed](https://zed.dev/docs/ai/mcp) | From the documentation, not tried | `headers` under `context_servers`; the key sits in the settings file |
| [Claude custom connectors](https://support.claude.com/en/articles/11175166-get-started-with-custom-connectors-using-remote-mcp) (claude.ai and Claude Desktop) | From the documentation, not tried | The "Request headers" field |
| [OpenAI Responses API](https://developers.openai.com/api/docs/guides/tools-connectors-mcp) | From the documentation, not tried | The `authorization` parameter of the `mcp` tool, which OpenAI describes as an access token; a Tillcast key there was not tried |
| [Anthropic Messages API](https://platform.claude.com/docs/en/agents-and-tools/mcp-connector) (MCP connector, beta) | From the documentation, not tried | The `authorization_token` field of an entry in `mcp_servers`, which Anthropic describes as an authorization token; a Tillcast key there was not tried |

Claude custom connectors and the two API rows call Tillcast from the vendor's servers. Whether those servers send an `Origin` header, which Tillcast refuses, is not known.

Since 18 June 2026 Gemini CLI no longer serves users of the free tier or of Google AI Pro and Ultra: Google replaced it for them with Antigravity CLI, which Tillcast has not tried. Gemini CLI stays available with paid API keys and with Gemini Code Assist Standard or Enterprise licenses.

In the four setups below, keep the key in an environment variable, here `TILLCAST_API_KEY`, and let the client read it, so the key is not written into a configuration file. Set the variable in the environment that starts the client.

### Claude Code

```sh
export TILLCAST_API_KEY='<your key>'
claude mcp add --transport http tillcast https://api.tillcast.com/mcp --header 'Authorization: Bearer ${TILLCAST_API_KEY}'
```

### Gemini CLI

```sh
export TILLCAST_API_KEY='<your key>'
gemini mcp add --scope user --transport http --header 'Authorization: Bearer ${TILLCAST_API_KEY}' tillcast https://api.tillcast.com/mcp
```

### Codex CLI

```toml
# ~/.codex/config.toml
[mcp_servers.tillcast]
url = "https://api.tillcast.com/mcp"
bearer_token_env_var = "TILLCAST_API_KEY"
```

### Cursor

```json
{
  "mcpServers": {
    "tillcast": {
      "url": "https://api.tillcast.com/mcp",
      "headers": { "Authorization": "Bearer ${env:TILLCAST_API_KEY}" }
    }
  }
}
```

Keep the single quotes in the first two commands, so that the client reads the variable when it connects and the settings file keeps `${TILLCAST_API_KEY}` and not the key. Put the Cursor file in `.cursor/mcp.json` in the project, or in `~/.cursor/mcp.json` for all projects. To check the setup, ask the assistant: "Use the Tillcast tools to show my organization."

## Keep it safe

Printing is an action that deserves care. The tools that print use paper, and once a printer has taken a job it cannot be recalled.

- **A person approves what prints.** `create_job` and `test_print` print on paper, and `create_printer` can print a welcome receipt when the printer first connects (`welcome_print`, on by default and not for an Epson printer). Where your client has an approval for tool calls, keep it switched on, and do not choose "always allow" for these tools. Some clients and modes run tools without asking: Claude's Research mode does with connector tools, and OpenAI's Responses API has a `require_approval` setting that can turn approval off. The server tells the assistant to preview first and to print only what the person agreed to, but an approval in the client is the control that holds.
- **Deleting cannot be undone.** `delete_customer`, `delete_location` and `delete_printer` are in the Installer preset. Their descriptions tell the assistant to ask the person first, and the approval in your client is the control here too.
- **Preview first.** `preview_document` costs nothing. `create_job` with `dry_run: true` does the same for a printer and checks what a real job would check, without making a job.
- **Retries.** Send an `idempotency_key` with every create, and the same one again if a call fails or times out, so that the thing is made once. A second `test_print` without one is a second page.
- **Printer addresses are passwords.** The answers of `create_printer`, `rotate_printer_secret` and `move_printer` (when it moves a printer to another customer) hold the address, so it appears in the conversation. Give a key `printers:write` only for a session that sets printers up.
- **Names are data.** The text in a customer's or a job's fields was written by other people. The server shows invisible characters in it as `?`, keeping only the few that an emoji or a script needs, but visible text can still tell a model what to do, which is why the approvals matter.
- **Everything is live.** Every call acts on your real account, so start with the Read only preset and revoke a key when the work is done.

## Where MCP fits next to the REST API and the SDKs

A program with a fixed plan can call the REST API directly: the developer decides in advance which call happens when. An SDK wraps it for one language. MCP suits software without a fixed plan, where a model reads the list of tools at run time and chooses. For a process that is always the same, such as printing a bill when an order closes, a plain API call is usually cheaper, faster and more predictable than a model that chooses each step; [Print your first receipt with one API call](https://tillcast.com/blog/print-your-first-receipt/) shows it. MCP suits work that a person phrases in their own words: setting up the printers of a new venue, drawing a receipt and adjusting it until it looks right, or printing a test page. The assistant uses the same key and the same rules as your code.

## Sources

Read on 25 October 2026.

- [MCP specification, revision 2026-07-28](https://modelcontextprotocol.io/specification/2026-07-28), [Streamable HTTP](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http) and [stdio](https://modelcontextprotocol.io/specification/2026-07-28/basic/transports/stdio)
- [What is MCP?](https://modelcontextprotocol.io/docs/2026-07-28/getting-started/intro) and [MCP joins the Agentic AI Foundation](https://blog.modelcontextprotocol.io/posts/2025-12-09-mcp-joins-agentic-ai-foundation/)
- Anthropic, ["Introducing the Model Context Protocol"](https://www.anthropic.com/news/model-context-protocol), November 2024
- Anthropic, ["Building effective AI agents"](https://www.anthropic.com/research/building-effective-agents), December 2024
- Google, ["An important update: Transitioning Gemini CLI to Antigravity CLI"](https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/), May 2026
- The client pages linked in the table, from Anthropic, Google, OpenAI, Cursor, Microsoft and Zed
- Tillcast docs, [Connect an AI assistant (MCP)](https://docs.tillcast.com/connect-an-ai-assistant). The clients marked tried were run on 21 October 2026 against a local build of the server.

---

Tillcast is a print API for receipt printers: your software sends a job and a printer in the venue prints it. https://tillcast.com/
