# Connect DINQ

DINQ is a remote MCP server over Streamable HTTP. Every client connects the same way: this URL,
and the user's DINQ API key as a bearer header (never in the URL).

- MCP URL: `https://search.dinq.me/mcp`
- Header: `Authorization: Bearer <DINQ API key>`

Successful searches are charged to that DINQ account; misses and errors are free.

## Setting it up

- **Codex:** https://search.dinq.me/plugins/codex-install.md (server entry plus the
  find-people skill).
- **WorkBuddy:** https://search.dinq.me/workbuddy-setup.md
- **Claude Code:**

  ```bash
  claude mcp add --transport http dinq https://search.dinq.me/mcp --header "Authorization: Bearer <DINQ API key>"
  ```

- **Cursor and other clients with an `mcpServers` JSON file:**

  ```json
  {
    "mcpServers": {
      "dinq": {
        "url": "https://search.dinq.me/mcp",
        "headers": { "Authorization": "Bearer <DINQ API key>" }
      }
    }
  }
  ```

- **Any other MCP client:** add a remote (Streamable HTTP) server with the URL and header above.

Then restart the client, start a new conversation and call `dinq_capabilities`: it is free and
lists the configured sources. The workflow is at https://search.dinq.me/skill.md.

## The tools are not in this session

**Say in your first line that DINQ is not connected.** If you answer from public web pages
instead, say so, so the reader knows DINQ was never searched.

1. **Is the server registered?** `codex mcp list`, `claude mcp list`, or the client's connector
   list. Not there means setup never completed — use the setup steps above.
2. **Was the client restarted after the configuration was written?** A client reads its MCP
   configuration when it starts, so configuration written during a session — including by you —
   does nothing until then. This is the most common cause.
3. **Is the endpoint reachable?** `curl -sS -o /dev/null -w '%{http_code}' -X POST
   https://search.dinq.me/mcp` answers **401** when it is — the service is healthy and wanted a
   key. A timeout, a refused connection or an HTML page is that machine's network or proxy.
4. **Did the server refuse the key?** A 401 with the key configured means it is missing,
   truncated or was deleted from the DINQ account.

You cannot restart the client you are running inside. When the configuration is right and the
client has not restarted, the whole report is one sentence: *the configuration is in place; DINQ
will work after you restart the client and start a new conversation.*

**Never send the key to `https://search.dinq.me/mcp` from a shell command, a script or a fetch
tool to "reconnect".** An MCP session cannot be built that way.

## Plain HTTP

The same tools answer over HTTP with the same key, no MCP client involved:
`GET https://search.dinq.me/api/tools` lists them, and
`POST https://search.dinq.me/api/tools/<tool name>` with the arguments as a JSON body calls
one. It puts the key on the network, so say what you are sending and where before you ask.
