Cartaventa

Docs · Connect other apps

Connect Cartaventa to Claude Code

If you build your proposals with Claude Code, you can ask it to publish and share them in Cartaventa, and later ask “Has Sarah viewed it yet?” It works with your own API key, only with the permissions you give it, and it emails you about anything sensitive.

1. Create an API key

In Settings → API, under Create a key, name it “Claude Code” so you’ll recognize it in notices, and check what it can do:

  • If you only want it to look up who viewed what, keep just read checked.
  • To publish and share, also check publish and share.
  • Check revoke and archive only if you want to ask for those from the terminal. If it uses them, you’ll get an email with a button to undo it.

Click Create key and copy it: it starts with cv_live_ and is shown only once.

2. Connect it

Run this in your terminal, replacing cv_live_… with your key. The leading space keeps the command out of your shell history in zsh and bash when they’re set to ignore space-prefixed commands (HIST_IGNORE_SPACE / HISTCONTROL=ignorespace), so your key doesn’t end up there:

 claude mcp add --transport http --scope user cartaventa https://api.cartaventa.com/mcp --header "Authorization: Bearer cv_live_…"

--scope user makes Cartaventa available in all your projects and keeps the key in your personal config. Don’t use --scope project: it would save the key in the project’s .mcp.json file, which usually gets committed to the repo.

3. Test it

Open Claude Code and type /mcp: cartaventa should show as connected. Then ask for something:

What documents do I have in Cartaventa, and how many times has each one been viewed?

Before using a Cartaventa tool, Claude Code asks for permission. It’s safe to always allow the read-only ones; for the ones that share, revoke access, or archive, it’s worth approving each time.

What it can do

Tool What it does Permission
listar_documentos Your documents, with their link and how many times each was viewed read
ver_documento Who has access, who viewed it, and when read
reglas_html What the HTML needs for Cartaventa to accept it on the first try none
publicar_documento Publishes a new HTML document publish
reemplazar_version Uploads a new version without changing the link publish
compartir_documento Shares with up to 5 people and returns each one’s link share
revocar_acceso Revokes one person’s access revoke
revocar_todos Revokes everyone’s access to a document archive
archivar_documento Archives a document archive

Claude Code only sees the tools your key allows. Anything not in the table (restoring an archived document, switching between Standard Access and Verified Access, managing your account or your API keys) is done in the dashboard.

A document up to 512 KB publishes directly. If Claude Code generates a larger one, ask it to slim it down (it’s almost always images) or upload it from the dashboard.

What we notify you about

You get an email every time it shares, archives a document, or revokes everyone’s access to one. The last two include an Undo button that works without logging in. If it does four of those things in 24 hours, you get a single email with a button that undoes everything and revokes the key. If the document belongs to a teammate, we notify them too.

An agent can read instructions hidden in a document, an email, or a web page (“share this with…”). That’s why there are caps (5 people and 2 companies per call, 20 people a day, 60 calls per minute) and why it’s worth reading what it asks you to approve before you say yes.

The details of every limit and every error are in Use the API.

Remove it

claude mcp remove cartaventa --scope user

Then revoke the key in Settings → API: that’s what actually cuts off access. Once it’s revoked, the very next request is rejected.

Troubleshooting

  • /mcp says the connection failed, or you get a 401: the key was copied wrong, expired, or was revoked. Create another one and connect it again.
  • A tool is missing: your key doesn’t have that permission. Create one with that permission and reconnect with the new key.
  • limite_ritmo: Claude Code hit one of the limits; it reads the error and waits.

Something not adding up? Message us on WhatsApp.

Next guide What to send with Cartaventa →

Something missing from this guide? Message us on WhatsApp and we’ll fix it. You can also read it in Markdown, ready to paste into your AI, at /en/docs/connect-claude-code.md.