Build with Your AI Assistant
Have an idea? Describe it to your AI assistant and let it build the prototype: it registers the device in Contact, puts the code on the board, builds the automation in Strand, and checks that data is flowing.
This works with any assistant that supports MCP, including Claude Code, Claude Desktop, Cursor, and VS Code. Setup is three steps, and you only do it once.
The Quick Start does the same first device by hand in the browser, with nothing to install.
What you need#
- A Tendrl account. One account covers Contact and Strand.
- An AI assistant that supports MCP servers.
- Optional: a board and a USB data cable. An ESP32, a Raspberry Pi Pico W, or an OpenMV camera. No board? Skip step 2; your assistant can still build everything on the cloud side.
Step 1: Create two keys#
Your assistant signs in to each product with its own key.
- In Contact, open Access Control → API Keys, click Add, pick the Admin role, and copy the key.
- In Strand, do the same: Access Control → API Keys → Create API Key, role Admin, copy the key.
Each key is shown once. Keep both handy for step 3.
Step 2: Install the device tool (only if you have a board)#
tendrl-dev-mcp is a small program that lets your assistant reach the board on your desk over USB: flash it, put code on it, read its output, and look through its camera.
# macOS / Linux
curl -fsSL https://app.tendrl.com/api/public/tools/dev-mcp/v1/latest/install.sh | sh
# Windows
powershell -c "irm https://app.tendrl.com/api/public/tools/dev-mcp/v1/latest/install.ps1 | iex"
Two boards need one extra thing first:
- A brand-new ESP32 needs
esptoolso the assistant can flash it:pip install esptool. - An OpenMV camera needs its firmware installed with the OpenMV IDE. The assistant can't flash that board.
Step 3: Connect your assistant#
Pick your assistant. Replace YOUR_CONTACT_KEY and YOUR_STRAND_KEY with the keys from step 1, and leave out tendrl-dev if you skipped step 2.
Claude Code#
Run these in your terminal:
claude mcp add --transport http contact https://app.tendrl.com/contact/mcp --header "Authorization: Bearer YOUR_CONTACT_KEY"
claude mcp add --transport http strand https://app.tendrl.com/strand/mcp --header "Authorization: Bearer YOUR_STRAND_KEY"
claude mcp add tendrl-dev -- tendrl-dev-mcp
Cursor#
Put this in .cursor/mcp.json:
{
"mcpServers": {
"contact": {
"type": "http",
"url": "https://app.tendrl.com/contact/mcp",
"headers": { "Authorization": "Bearer YOUR_CONTACT_KEY" }
},
"strand": {
"type": "http",
"url": "https://app.tendrl.com/strand/mcp",
"headers": { "Authorization": "Bearer YOUR_STRAND_KEY" }
},
"tendrl-dev": {
"command": "tendrl-dev-mcp"
}
}
}
VS Code#
Put this in .vscode/mcp.json:
{
"servers": {
"contact": {
"type": "http",
"url": "https://app.tendrl.com/contact/mcp",
"headers": { "Authorization": "Bearer YOUR_CONTACT_KEY" }
},
"strand": {
"type": "http",
"url": "https://app.tendrl.com/strand/mcp",
"headers": { "Authorization": "Bearer YOUR_STRAND_KEY" }
},
"tendrl-dev": {
"type": "stdio",
"command": "tendrl-dev-mcp"
}
}
}
Claude Desktop and other assistants#
Claude Desktop's config file only starts local programs, so the two hosted servers need a small bridge. The exact config is on the MCP Server page. Any other MCP client takes the same two URLs with an Authorization: Bearer header, plus the tendrl-dev-mcp command.
Step 4: Say what you want to build#
Plug in the board if you have one, then describe the idea in plain words. A few to start from:
A sensor
I have an ESP32 plugged in. Set it up as a temperature sensor called kitchen-01 on my Wi-Fi network "MyNetwork", publishing every 30 seconds. Then build a Strand workflow that runs whenever a reading is above 85°F, and a dashboard that charts the temperature.
A camera
I have an OpenMV camera plugged in. Show me what it sees, then build something that tells me when the coffee pot is empty.
No board yet
Register a test device called demo-sensor in Contact and send a few temperature readings for it. Then build a Strand workflow that runs whenever a reading is above 85°F, and show me that it ran.
The assistant asks for what it can't find out itself, usually just your Wi-Fi password. It will ask you to approve steps that touch the board, such as flashing it.
What happens next#
Behind the prompt, the assistant works through the same steps you would:
- Finds the board on USB and checks what it is
- Registers it in Contact, which issues the device its own key
- Installs the Tendrl SDK on the board, writes the key and your Wi-Fi details, and uploads the code
- Confirms messages are arriving in Contact
- Builds the Strand workflow and connects it to the device's messages
- Confirms the workflow ran
See it for yourself in the dashboard: Messages in Contact shows the readings, and Runs in Strand shows each time the workflow fired.
From here, keep talking: "publish every 10 seconds instead", "add humidity", "also post to Slack". Actions that reach an outside service such as Slack need that service's credential saved in Strand first; the assistant will tell you where.
If it gets stuck#
| What you see | What to do |
|---|---|
The assistant's Contact or Strand tools all fail with 403 |
The key isn't an account key with the Admin role. Make a new one under Access Control → API Keys. A device's own key won't work here. |
| The board connects, then is refused with "Only entities can write messages" | The board was given an account key. Ask the assistant to use the device key that Contact issued when it registered the device, or rotate that key from the device's page in Contact. |
| Readings show in Contact, but Strand never runs | Ask the assistant to check two things: the workflow has Expose to Contact turned on, and the workflow's tags include every tag the device sends. |
| The assistant can't find the board | Almost always the USB cable. Try another one; many only carry power. |
The assistant says a tendrl-dev tool doesn't exist |
Restart the assistant after installing tendrl-dev-mcp so it picks up the new server. |
More on the device side: Device troubleshooting.
Go deeper#
- Local device tool: everything
tendrl-dev-mcpcan do, and its local web console - Contact MCP Server and Strand MCP Server: the full tool lists
- Quick Start: the same first device, by hand
Tendrl