{% extends 'dg_core/base.html' %} {% load i18n %} {% block title %}{% translate "Connect an agent" %}{% endblock %} {% block content %}
{% blocktranslate trimmed %} An agent such as Claude works here as you: it reaches only what you may use yourself, and loses an app the moment you do. What it changes says so in the history. {% endblocktranslate %}
{% blocktranslate trimmed %} In Claude, open Settings › Connectors, choose Add custom connector, and paste this address. Claude then asks you to sign in here and allow it. {% endblocktranslate %}
{% blocktranslate trimmed %} Claude reaches this site from Anthropic's servers, so only when it is on the internet over HTTPS. On an internal network, use Claude Code instead. {% endblocktranslate %}
{% endif %}{% blocktranslate trimmed %}Run this once, then /mcp in Claude Code to sign in here in your browser:{% endblocktranslate %}
claude mcp add --transport http datagroceries {{ mcp_url }}
{% blocktranslate trimmed %}Put this in .vscode/mcp.json and start the server: VS Code asks you to sign in here in your browser.{% endblocktranslate %}
{"servers": {"datagroceries": {"type": "http", "url": "{{ mcp_url }}"}}}
{% translate "No app has signed in as you yet." %}
{% endfor %}
{% blocktranslate trimmed %}
For scripts, CI and agents that cannot sign in the way Claude does. A program sends the token with every
request as Authorization: Bearer <token>. Make one per program, so you can revoke it on
its own.
{% endblocktranslate %}
{% translate "You have no tokens yet." %}
{% endfor %}{% translate "A connection or a token stops after three months without use." %}