Skip to content
DocumentationRecipes

Recipes

Two things people build once they have decided to use Corlecti Map as more than a browser tab: an assistant kept to one map, and a system of their own writing into a map. Each says what you get and the steps to take.

A key narrowed to one map#

What you get. An assistant that reads and changes one map and cannot see or touch any other.

  1. In Corlecti Map open Settings → Connections and press New key.
  2. On the key form, set Reaches to exactly one map, name the key if you like,

and press Create key. Copy it now; it is shown once.

  1. Connect the assistant with that key, as

Connect an assistant over MCP shows.

That key answers "not found" for every other map (four tools, list_docs, get_doc, get_scenario and advance_scenario, answer "This can't reach that map." instead: Limits lists them under "Refusal codes"), and is not offered the tools that act on the whole account. Its reach is fixed when it is created: to change it, create a new key and revoke the old one.

To keep the key to one branch of the map, pick a block under Branch on the same form: the key then changes only that block and everything hanging under it. A Telegram bot can sit on a branch the same way (Use your own bot).

Building your own thing on top#

What you get. A system of your own — a website's contact form, a support inbox, a script that watches an RSS feed — filing what it finds straight into one of your maps, through the same MCP surface an assistant uses.

Worked example: a website that files leads into a map.

  1. In Corlecti Map, create (or choose) the map leads should land on.
  2. In Settings → Connections, create a key with Reaches set to that one map.

Keep it on your server only.

  1. Find the map's id once. The key reaches only that map, so list_boards

answers with it:

curl -X POST https://map.corlecti.com/api/mcp \
  -H "Authorization: Bearer mmap_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"list_boards","arguments":{}}}'
event: message
data: {"result":{"content":[{"type":"text","text":"[{\"id\":\"BOARD_ID\",\"name\":\"Leads\"}]"}]},"jsonrpc":"2.0","id":1}
  1. On each form submission, your server calls apply_map with that id and the

lead as one node. Put your own submission id in the Idempotency-Key header:

curl -X POST https://map.corlecti.com/api/mcp \
  -H "Authorization: Bearer mmap_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Idempotency-Key: lead-YOUR_SUBMISSION_ID" \
  -d '{
    "jsonrpc": "2.0", "id": 2, "method": "tools/call",
    "params": { "name": "apply_map", "arguments": {
      "boardId": "BOARD_ID",
      "document": {
        "version": "mmap.v1",
        "kind": "fragment",
        "nodes": [
          {
            "ref": "lead1",
            "title": "Jane Doe — jane@example.com",
            "content": "Interested in the Workspace plan. Submitted via the contact form."
          }
        ],
        "edges": []
      }
    } }
  }'

The answer names the id of the block it created, beside your ref, and a second text item may follow with notes on what the map decided:

event: message
data: {"result":{"content":[{"type":"text","text":"{\"nodes\":[{\"ref\":\"lead1\",\"id\":\"BLOCK_ID\"}],\"edges\":[]}"}]},"jsonrpc":"2.0","id":2}
  1. If the connection drops before you read the answer, send the same request

again with the same Idempotency-Key. Within 5 minutes a repeat returns the original result, with the same ids, and writes nothing a second time. The value is yours alone. The server keeps it in memory, so a restart clears it. Only a request that was applied is kept: a refused one is not, so after fixing it you can send it again with the same value. A client that cannot set a header can pass an idempotencyKey argument instead; that key is bound to the request, so the same value with a different lead is refused. Without a key, a retried request files the lead twice.

  1. Read the map back with get_board — or open it in the app — to triage, tag

or connect what came in.

The key never grants more than the one map it was created for: a bug in your own server cannot reach any other map of yours. Every tool is on MCP tools, every field apply_map accepts is on The .mmap format, and the quota each call counts against is on Limits.