Skip to content

Connecting your assistant

You connect your assistant once; then you open and use Defthand in every chat. The connection uses OAuth: you do not need to enter a client ID, a secret or a password.

  1. Open AI assistant → How to connect (in the AI Workspace, the Connect an agent page shows the same address).
  2. Take the address in the Bağlantı adresi (connection address) box with Kopyala (Copy). The address ends with /mcp.

The address is specific to your installation; always copy it from the panel.

  1. In Claude, open Customize → Connectors.
  2. Choose + Add, then Add custom connector.
  3. Type Defthand as the name, paste the connection address in the address field and click Continue.
  4. Leave the suggested authentication options (Sign in now, Use Claude’s published identity).
  5. Click Add. Defthand’s sign-in page opens; follow the “Sign-in and consent” steps below.
  6. In a chat, open the Connectors menu from the + button at the bottom left and switch Defthand on.

On the Team and Enterprise plans the owner of your Claude account adds the connection once; you find Defthand in the Customize → Connectors list and click Connect. The connection also works on the phone.

  1. Run this in the terminal: claude mcp add --transport http defthand <address>
  2. In Claude Code, type /mcp, choose defthand and click Authenticate. The sign-in page opens in the browser.
  1. In the web version of ChatGPT, choose to add a custom MCP server in the apps and connectors settings.
  2. Type Defthand as the name and the connection address as the address; choose OAuth for authentication.
  3. Sign in and give access.
  4. Choose Defthand in the chat. Before a save or an approval, ChatGPT asks for your confirmation.

On your organization’s Open WebUI server, the Open WebUI administrator sets up the connection once:

  1. Admin Panel → Settings → Integrations → External Tool Servers → + Add Connection.
  2. Choose MCP (Streamable HTTP) as the type, the connection address as the address and OAuth 2.1 as the authentication.
  3. Click Register Client, then Save.

Each user switches Defthand on in a chat from the + → Tools menu and signs in with their own account.

  1. Add this section to ~/.codex/config.toml:

    [mcp_servers.defthand]
    url = "<address>"
  2. Run codex mcp login defthand and sign in.

  1. Add this to ~/.cursor/mcp.json (or .cursor/mcp.json for one project only):

    { "mcpServers": { "defthand": { "url": "<address>" } } }
  2. In Cursor Settings → MCP, click defthand’s sign-in button and sign in.

  • Gemini app: adding a custom MCP server depends on your plan and your organization’s Google settings. In the settings, add a custom MCP server under connected apps or connectors; enter the address and OAuth, and sign in. If the option is missing, use Gemini CLI.

  • Gemini CLI: add this to ~/.gemini/settings.json, then type /mcp auth defthand in Gemini CLI and sign in:

    { "mcpServers": { "defthand": { "httpUrl": "<address>" } } }
  1. Add this to opencode.json (or ~/.config/opencode/opencode.json for a global setting):

    { "mcp": { "defthand": { "type": "remote", "url": "<address>", "enabled": true } } }
  2. Run opencode mcp auth defthand and sign in.

Any client that supports remote MCP servers (Streamable HTTP) and OAuth 2.1 works: enter the address, choose OAuth and sign in. The client registers itself; no client ID or secret is needed.

Whichever client you use, you sign in on Defthand’s own page:

  1. Sign in with your organization code and your own account.
  2. On the Give your assistant access screen, read which app is connecting, with which organization and account, and which address it returns to if you allow it.
  3. The screen says what the assistant can do: see and do your work on your behalf within your permissions, and stay connected until you remove the connection.
  4. Click Allow access or Deny.

Then you go back to your assistant. As a first try, write: “Who am I connected as in Defthand?”

Message on screen What to do
“AI assistant access is switched off for your organisation.” Ask your organization’s administrator to switch access on in Assistant settings.
“You are not allowed to connect an AI assistant. Ask your administrator.” Ask your administrator to add this permission to your role.
“Your organisation’s subscription does not include the AI assistant.” Talk to the Defthand team about your subscription.
“This account cannot give an assistant access” Customer portal accounts and sessions opened on someone else’s behalf cannot connect an assistant.
“The connection request has expired or was already answered.” Start the connection again from your assistant.