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.
The connection address
Section titled “The connection address”- Open AI assistant → How to connect (in the AI Workspace, the Connect an agent page shows the same address).
- 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.
Claude (claude.ai and desktop)
Section titled “Claude (claude.ai and desktop)”- In Claude, open Customize → Connectors.
- Choose + Add, then Add custom connector.
- Type Defthand as the name, paste the connection address in the address field and click Continue.
- Leave the suggested authentication options (Sign in now, Use Claude’s published identity).
- Click Add. Defthand’s sign-in page opens; follow the “Sign-in and consent” steps below.
- 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.
Claude Code
Section titled “Claude Code”- Run this in the terminal:
claude mcp add --transport http defthand <address> - In Claude Code, type
/mcp, choose defthand and click Authenticate. The sign-in page opens in the browser.
ChatGPT
Section titled “ChatGPT”- In the web version of ChatGPT, choose to add a custom MCP server in the apps and connectors settings.
- Type Defthand as the name and the connection address as the address; choose OAuth for authentication.
- Sign in and give access.
- Choose Defthand in the chat. Before a save or an approval, ChatGPT asks for your confirmation.
Open WebUI
Section titled “Open WebUI”On your organization’s Open WebUI server, the Open WebUI administrator sets up the connection once:
- Admin Panel → Settings → Integrations → External Tool Servers → + Add Connection.
- Choose MCP (Streamable HTTP) as the type, the connection address as the address and OAuth 2.1 as the authentication.
- Click Register Client, then Save.
Each user switches Defthand on in a chat from the + → Tools menu and signs in with their own account.
Codex (CLI and IDE extension)
Section titled “Codex (CLI and IDE extension)”-
Add this section to
~/.codex/config.toml:[mcp_servers.defthand]url = "<address>" -
Run
codex mcp login defthandand sign in.
Cursor
Section titled “Cursor”-
Add this to
~/.cursor/mcp.json(or.cursor/mcp.jsonfor one project only):{ "mcpServers": { "defthand": { "url": "<address>" } } } -
In Cursor Settings → MCP, click defthand’s sign-in button and sign in.
Gemini and Gemini CLI
Section titled “Gemini and Gemini CLI”-
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 defthandin Gemini CLI and sign in:{ "mcpServers": { "defthand": { "httpUrl": "<address>" } } }
OpenCode
Section titled “OpenCode”-
Add this to
opencode.json(or~/.config/opencode/opencode.jsonfor a global setting):{ "mcp": { "defthand": { "type": "remote", "url": "<address>", "enabled": true } } } -
Run
opencode mcp auth defthandand sign in.
Other MCP clients
Section titled “Other MCP clients”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.
Sign-in and consent
Section titled “Sign-in and consent”Whichever client you use, you sign in on Defthand’s own page:
- Sign in with your organization code and your own account.
- 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.
- 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.
- Click Allow access or Deny.
Then you go back to your assistant. As a first try, write: “Who am I connected as in Defthand?”
If the connection fails
Section titled “If the connection fails”| 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. |