Connect Claude Code, Codex or Cursor to your task tracker over MCP
Create a scoped API key, keep it in your keychain, add the MCP server to Claude Code or Codex, and know what the assistant may change without asking.
6 min read
Create an API key in Tenslo Tasks, store it in your keychain, point your assistant at your workspace's MCP address with the key in an environment variable, and ask it to call the whoami tool. That takes a few minutes. The part worth slowing down for is the key: choose the narrowest access that does the job, and never paste it into a file or a command history.
What MCP gives an assistant in a tracker
The Model Context Protocol is an open standard for letting an assistant call tools on another system. Instead of you pasting task text into a chat, the assistant calls tools on your tracker: it lists and searches tasks, reads a description, adds a comment or moves a task along. Clients such as Claude Code add a server by address and then offer its tools to the model (Claude Code MCP docs). With Tenslo Tasks the assistant acts as you, in one workspace, and every change is recorded under your name.
Choose what the key may do
In Settings, open API keys, create a key and choose its access. There are two choices for everyone, and a third for admins:
| Access | What the client can do | When to pick it |
|---|---|---|
| Read only | Only the tools that read are offered | Triage, summaries, "what is blocked" questions |
| Read and change tasks | Create and update tasks, comment, plan sprints, and more | Day-to-day work from the editor |
| Admin (workspace admins and owners) | Also create and change projects, areas, labels and initiatives | Setting a workspace up |
Pick read only first. You can create a second key later when a task needs more, and a read-only key is only ever offered the tools that read.
Then choose an expiry: 30 days, 90 days or a year. A short expiry costs you a re-run of the setup and limits the damage of a leaked key. The key is shown once, so keep it ready for the next step. If you lose track of it or a laptop goes missing, choose Revoke on the key and it stops at once. The help answer on connecting a client lists everything a key can reach.
Keep the key out of files
An MCP config checked into a repository, or a command typed with the key inline, leaves the key in your shell history or your git history. The setup the app shows avoids both: the key lives in your system keychain, and the client refers to it by an environment variable named TENSLO_TASKS_API_KEY.
On macOS, store the key in the keychain (the command prompts for it, so it never appears in your history), then add a lookup to your shell profile:
security add-generic-password -a "$USER" -s tenslo-tasks-api-key -w
export TENSLO_TASKS_API_KEY="$(security find-generic-password -s tenslo-tasks-api-key -w)"
On Linux, use secret-tool, and put the lookup in ~/.bashrc:
secret-tool store --label='Tenslo Tasks API key' service tenslo-tasks-api-key
export TENSLO_TASKS_API_KEY="$(secret-tool lookup service tenslo-tasks-api-key)"
Open a new terminal so the variable is set before you start your assistant.
Connect Claude Code or Codex
Create the key
In Settings, open API keys, create a key with read only or read and change access, pick an expiry and copy the key once.
Store it in your keychain
Run the keychain command for your system from the section above, paste the key when prompted, and add the profile line.
Add the server
Copy your workspace's MCP address from Settings, Assistants and run the command for your client. Replace
<mcp-address>with that address.Check the connection
Start the client and ask it to call the
whoamitool. It should name your workspace and the key it is using.
For Claude Code:
claude mcp add --transport http --scope user tenslo-tasks '<mcp-address>' \
--header 'Authorization: Bearer ${TENSLO_TASKS_API_KEY}'
For Codex:
codex mcp add tenslo-tasks --url '<mcp-address>' --bearer-token-env-var TENSLO_TASKS_API_KEY
Both commands name the variable and never the key itself. Settings, Assistants also shows the address and the setup for Cursor, VS Code and OpenCode, which take a JSON or header form instead of a command. Clients that support signing in can connect without a key at all.
What the assistant can and cannot do
With read and change access, the assistant can do what you can do with tasks: list, search, create and update them, comment, plan sprints and read your inbox. It can also read milestones, the roadmap and insights. With admin access it can set up projects, areas, labels and initiatives. Creating and deleting milestones, members and the other admin settings stay in the app.
Some actions never run straight from a key, yours or an agent's:
- Archiving a task or a project
- Removing a link between tasks
- Changing many tasks at once
For these the client gets a link instead, and you are told in your inbox and by email. Open the link while signed in, read what would change, then approve or deny it. Only a person signed in to the app can decide, never a token. A request nobody decides expires after 24 hours. Settings, Approvals lists what is waiting, and the help answer on approvals has the full rules.
Text in tasks and comments can come from outside your workspace, such as imports or integrations. Tenslo Tasks marks that text as untrusted content for the assistant, so a task description is read as data and not followed as an instruction.
Prompts to try
- "Call whoami and tell me which workspace and key you are using."
- "List the tasks assigned to me that are in progress, with their identifiers."
- "Search for tasks that mention the invoice export and summarise their status."
- "Create a task for the flaky login test and add a comment with the stack trace."
- "Archive the tasks in the Q3 cleanup list." (This waits for your approval.)
When it does not connect
| Symptom | Likely cause | What to do |
|---|---|---|
| 401 | The key is unknown, expired or revoked. The three look the same on purpose. | Check the variable is set in the terminal that started the client, then create a new key in Settings, API keys. |
| 403 naming a scope | The key lacks the access the tool needs | Create a key with read and change access, or ask an admin for the admin choice. |
| Works, but the wrong tasks | The key belongs to another workspace, or is limited to some projects | Call the whoami tool and compare. |
| Tool missing from the list | A read-only key is offered only the tools that read | Use a key with read and change access. |
If the variable looks empty, remember that a profile change applies only to new terminals.