# Connect other tools

Sinbad is an MCP server. Claude, Claude Code, Codex, VS Code, Cursor and anything else that speaks the **Model Context Protocol** over HTTP can work with your Sinbad workspaces: find a workstream, read and change its files, and hand its agent a task.

The address is **https://tidal-ai.space/mcp**. A tool either signs you in from its own side, or comes in with a **key** you make. Either way you say how far it may go.

## How far a tool may go

| Level | What it can do |
|---|---|
| **Look** (`read`) | See your workspaces, workstreams, conversations and files. Nothing can be changed. |
| **Look and edit** (`write`) | Also change files and start new workstreams. Every save is a version you can go back from. |
| **Edit and run** (`run`) | Also give workstreams demands, which Sinbad's agents carry out. Those runs spend your credits. |

A key can be limited to one workspace. A key acts as you, so it can do no more than you may: a tool with a key for a workspace where you can only read, can only read. Work in Incognito is never offered to a tool.

## Add Sinbad to a tool, with the tool signing you in

The tool opens Sinbad in your browser, you say yes there and choose how far it may go, and it comes back with a token. You can see and take back every sign-in under **Account, then Connect other tools**.

**Claude Code**

```bash
claude mcp add --transport http tidal https://tidal-ai.space/mcp
```

Then type `/mcp` in Claude Code and choose `tidal`.

**Codex**

```bash
codex mcp add tidal --url https://tidal-ai.space/mcp
codex mcp login tidal
```

**Cursor**, in `~/.cursor/mcp.json`:

```json
{ "mcpServers": { "tidal": { "url": "https://tidal-ai.space/mcp" } } }
```

**VS Code**, in `.vscode/mcp.json` in your project:

```json
{ "servers": { "tidal": { "type": "http", "url": "https://tidal-ai.space/mcp" } } }
```

**Claude's own apps:** Customize, then Connectors, then Add custom connector, and paste the address.

The server is named `tidal` in these lines because that is the name Sinbad's MCP server announces.

## Add Sinbad with a key

Make a key under **Account, then Connect other tools**. Give it a name, choose the level, choose a workspace or all of them, and press **Make a key**. The key is shown once, so copy it then. It looks like `tdl_` followed by letters and digits. Then, for example:

```bash
claude mcp add --transport http tidal https://tidal-ai.space/mcp --header "Authorization: Bearer $SINBAD_KEY"
```

An account can have twenty keys. Take a key back at any time and it stops working at once.

## Try it from a script

These examples use a key in `SINBAD_KEY`. The first asks the server who it is:

```bash
curl -s https://tidal-ai.space/mcp \
  -H "Authorization: Bearer $SINBAD_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"my-script","version":"1"}}}'
```

The answer is one JSON object, with the server's name, its version and what a model should know before using it. This lists the tools this key may use:

```bash
curl -s https://tidal-ai.space/mcp \
  -H "Authorization: Bearer $SINBAD_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
```

And this calls one, to list your workspaces:

```bash
curl -s https://tidal-ai.space/mcp \
  -H "Authorization: Bearer $SINBAD_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"workspaces","arguments":{}}}'
```

### A whole tour in Node

This script (Node 18 or later) lists your workspaces, makes a workstream, writes a file into it, reads the file back and checks how the workstream stands. It needs a key that may change files (level **Look and edit** or above), and it makes a real workstream called "Docs example" in your workspace, which you can delete.

```js
const url = process.env.SINBAD_URL ?? 'https://tidal-ai.space'
const key = process.env.SINBAD_KEY
let n = 0
async function rpc(method, params = {}) {
  const r = await fetch(url + '/mcp', {
    method: 'POST',
    headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' },
    body: JSON.stringify({ jsonrpc: '2.0', id: ++n, method, params }),
  })
  const j = await r.json()
  if (j.error) throw new Error(j.error.message)
  return j.result
}
async function tool(name, args = {}) {
  const r = await rpc('tools/call', { name, arguments: args })
  const text = r.content.map(c => c.text).join('\n')
  if (r.isError) throw new Error(text)
  return text
}
await rpc('initialize', { protocolVersion: '2025-11-25', capabilities: {}, clientInfo: { name: 'tour', version: '1' } })
console.log(await tool('workspaces'))
const made = await tool('new_workstream', { title: 'Docs example' })
const id = / id (\S+) /.exec(made)[1]
console.log(await tool('write_file', { workstream: id, path: 'index.html', content: '<h1>Hello from a script</h1>' }))
console.log(await tool('read_file', { workstream: id, path: 'index.html' }))
console.log(await tool('status', { workstream: id }))
```

With a key at level **Edit and run**, `demand` hands the workstream's own agent a task and waits for its answer, up to 45 seconds; `status` with `wait_s` waits for it for longer. A run spends your credits exactly as if you had typed the demand.

## What to keep in mind

- A tool sees the same things you do, and no more.
- A saved file is a **version**, so you can go back from it, and it reaches the live preview.
- `demand` is the only tool that spends credits.
- Deleting an account is never possible from a tool: it needs you, signed in to a browser.

The full list of tools, their inputs and the errors a tool can meet is in [The MCP server, in full](https://tidal-ai.space/docs/mcp-reference.md).