# MCP server

> https://numal.ai/docs/mcp · Numal docs, for agents

Numal is an MCP server. Any agent that speaks MCP connects with the access of a person in your workspace and works in that workspace only.

## Server

| What | Value |
|---|---|
| Address | `https://app.numal.ai/api/mcp` |
| Transport | Streamable HTTP, stateless, JSON responses |
| Protocol versions | `2025-06-18`, `2025-03-26`, `2024-11-05` |
| Workspace | The one the sign-in or the token belongs to |
| Capabilities | Tools and prompts |

A request without a valid sign-in gets `401` with a `WWW-Authenticate` header that points to the server’s metadata.

## Sign-in

### OAuth, for apps with connectors

OAuth 2.1 with PKCE (`S256`) and dynamic client registration. The person presses Allow on Numal’s own page, and no token is copied by hand.

| Step | Endpoint |
|---|---|
| Resource metadata | `https://app.numal.ai/.well-known/oauth-protected-resource` |
| Server metadata | `https://app.numal.ai/.well-known/oauth-authorization-server` |
| Register the client | `POST https://app.numal.ai/api/oauth/register` |
| The person allows it | `https://app.numal.ai/authorize` |
| Tokens | `POST https://app.numal.ai/api/oauth/token` |

The access token lasts 1 hour. The refresh token lasts 90 days and is replaced each time it is used. The scope is `numal`. An approved client shows up as an agent in Settings → Tracker, and removing it there ends its tokens.

### A token, for agents you configure

Make one in Settings → Tracker and send it on every request:

```text
Authorization: Bearer <token>
```

The token is shown once. Numal keeps only its fingerprint.

## Tools

| Tool | What it does |
|---|---|
| `get_setup` | What the workspace follows: the boards it knows, each with the time of its last snapshot, and what a run should do. Call it first. |
| `send_snapshot` | The current tasks of one board: every open task, plus the ones closed in the last 2 days. Up to 200 per call; a big board goes in parts. |
| `add_sync` | The transcript of one sync. The same recording sent twice is taken once. `auto: true` when the agent picked it by the workspace’s rule. |
| `list_unread_syncs` | The syncs nobody has read yet, oldest first. |
| `get_sync` | Everything needed to read one sync: the transcript by turns, the workspace’s state, the rules of the reading. Long transcripts come in parts. |
| `submit_review` | The reading of one sync. Numal keeps only the quotes it finds in the transcript. Nothing reaches the tracker from this call. |
| `list_ready_tasks` | Tasks a manager approved that aren’t in the tracker yet. |
| `mark_added`, `mark_failed` | Whether a task got into the tracker, and if not, why. |
| `list_block_updates` | Tasks whose “Decisions from syncs (Numal)” section must be written, replaced or removed. |
| `mark_block_written`, `mark_block_failed` | Whether that section was written. |
| `get_task_context` | Before working on a tracker task: the decisions in force for it. |
| `send_calendar` | The team’s coming calls from the person’s calendar, only when the workspace asks for them. |

## Prompts

| Prompt | What it gives the agent |
|---|---|
| `morning_run` | Numal’s whole routine in one go. Optional argument `tracker`. |
| `daily_snapshot` | The tracker snapshot alone. Optional argument `tracker`. |
| `read_syncs` | Read the syncs that wait into tasks and decisions for the manager to approve. |
| `send_calendar` | Send the day and time of the team’s coming calls. |

`tracker` is one of `linear`, `jira`, `asana`, `github`, `trello`, `clickup` or `other`.

## For coding agents

A coding agent that picks up a task from the tracker can ask Numal what the team decided about it first. Call `get_task_context` with the task’s key:

```json
{ "key": "LAU-128" }
```

Numal answers with the decisions from the team’s syncs that are in force for that task, each with its quote, who decided and when. Replaced and private decisions are never returned.

## Check the connection

The server is stateless, so a single request shows whether a token works:

```bash
curl https://app.numal.ai/api/mcp \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

A working token gets the list of tools. A wrong or removed one gets `401`.
