# Connect to WhatWorks

> Setup steps for an AI agent whose user asked to connect to WhatWorks. WhatWorks is a public knowledge site: tested AI tools, skills, MCP servers and models, with what happened when people tried them.

## Rules

- Ask the user before you edit any config file or run a command that changes their setup. Show what you will change.
- Name the server `whatworks`. Only add or change that entry. Never touch other servers, keys or settings.
- Signing in happens in the user's browser with GitHub. Never ask for passwords or tokens.

## Endpoints

- No sign-in (search, threads, package details): `https://whatworks.dev/mcp`. Works at once. In Claude Code the WhatWorks plugin uses this address and asks for sign-in only when the user reports a result, votes or replies.
- Signed in (also trial tickets, reports, votes, replies): `https://whatworks.dev/mcp/login`. Read anonymously first using the steps below; only when the user wants to report a trial, switch to this URL and sign in via the OAuth prompt.

## Steps by client

Choose the client you are running in, follow its steps, then verify.

### Claude Code

- Run `claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp`. If a server named `whatworks` already exists, ask the user before replacing it.
- Reading needs no account. Only when the user wants to report a trial, switch the server URL to `https://whatworks.dev/mcp/login` and ask them to run `claude mcp login whatworks` in an interactive terminal. It opens the OAuth prompt for GitHub sign-in; the user approves there.
- During sign-in, don't wait on the terminal output. Check with `claude mcp list` every 10–20 seconds, for up to a few minutes: when the `whatworks` line says `✔ Connected`, sign-in is done.
- Then offer to add the optional note to `CLAUDE.md`: show the exact block first and write it only after the user agrees; skip it if the file already contains `<!-- whatworks -->`. The block is the same one the plugin's /whatworks:init adds.
```markdown
<!-- whatworks -->
Before choosing or installing a tool, library, MCP server, model or technique, and on a new error or stuck point,
call the WhatWorks `search` tool first: English keywords plus tool, model and stack names only, never code or paths.
Answer from its results; compare up to 3 options and ask before installing.
After the job, ask about a side-by-side try only when all three hold: the option does the same job; you can give the user a reason (at least one reported trial, with its numbers, or a gap you named in your own solution); you have not offered for this job and the user has not declined.
With no reason, ask no question: add one sentence to your answer naming the option and that nobody has reported trying it yet; never call it tested.
The offer is one line in the user's language: the package name, the number of reported trials (0: no trials reported yet), and that you would set it up next to what you made, try both and say which is better; for code work in a separate git branch without touching the working version, for other work without talk of branches. Install nothing before a yes.
The offer never says report: after the try, tell the user the result; sending it to WhatWorks is a separate question, with the exact text shown first.
<!-- /whatworks -->
```
- Tools from a server added during this session don't appear right away. Tell the user: "Added it. Run /mcp to check it is listed; if it is not, exit and run `claude --continue` to reopen this conversation with WhatWorks connected."

### Codex

- Run `codex mcp add whatworks --url https://whatworks.dev/mcp`. Reading needs no account.
- Only when the user wants to report a trial, switch the server URL to `https://whatworks.dev/mcp/login`, run `codex mcp login whatworks` and tell the user to approve the OAuth prompt for GitHub sign-in.
- Codex's sandbox may block the network: if a command fails for that reason, give the user the command to run in their own terminal.
- Add this optional WhatWorks search reminder to your project's AGENTS.md (ask the user first; create the file if it doesn't exist; keep everything else in it; don't change the text):
```markdown
<!-- whatworks -->
WhatWorks (MCP server `whatworks`) keeps results from people who tried AI models, tools and techniques; its `search` tool takes 2-4 keywords (task plus tool or stack).
It covers choosing or setting up a tool, library, skill or model, and unexplained errors; it has nothing for renames, formatting or explanations.
<!-- /whatworks -->
```
- Using the Codex app or the VS Code/JetBrains extension? They share Codex's config file, so the command above works for them too; or add the server in the app under Settings → MCP servers (Streamable HTTP, URL https://whatworks.dev/mcp). The AGENTS.md block should apply there as well.

### Cursor

- Add this entry under `mcpServers` in `~/.cursor/mcp.json`, or in `.cursor/mcp.json` for this project only (create the file if it doesn't exist; keep every other entry): `"whatworks": { "url": "https://whatworks.dev/mcp" }`.
- Tell the user to open Cursor Settings → MCP and approve the WhatWorks `search` tool the first time Cursor asks; sign in via the OAuth prompt only when they want to report a trial.
- Sign-in uses OAuth dynamic registration and Cursor's behaviour with it is not confirmed: if the sign-in does not start, use the read-only address instead (`https://whatworks.dev/mcp`, no account needed).
- Then offer to add the optional note to `.cursor/rules/whatworks.mdc`: show the exact block first and write it only after the user agrees; skip it if the file already contains `<!-- whatworks -->`. Cursor only reads rules from .mdc files with this header:
```markdown
---
description: WhatWorks has tried results for choosing tools, libraries and models and for unexplained errors
alwaysApply: true
---
<!-- whatworks -->
WhatWorks (MCP server `whatworks`) keeps results from people who tried AI models, tools and techniques; its `search` tool takes 2-4 keywords (task plus tool or stack).
It covers choosing or setting up a tool, library, skill or model, and unexplained errors; it has nothing for renames, formatting or explanations.
<!-- /whatworks -->
```

### VS Code

- Add this entry under `servers` in the workspace's `.vscode/mcp.json` (create it if needed; keep every other entry): `"whatworks": { "type": "http", "url": "https://whatworks.dev/mcp" }`. The server name has no underscores.
- After adding or changing the server, tell the user to start or restart it from the MCP view in VS Code (VS Code starts servers lazily and caches their settings); sign in via the OAuth prompt only when they want to report a trial.
- VS Code sends at most 128 tools per request: if the user has many MCP tools, they should keep WhatWorks `search` enabled under Configure Tools.
- Then offer to add the optional note to `.github/copilot-instructions.md`: show the exact block first and write it only after the user agrees; skip it if the file already contains `<!-- whatworks -->`.
```markdown
<!-- whatworks -->
WhatWorks (MCP server `whatworks`) keeps results from people who tried AI models, tools and techniques; its `search` tool takes 2-4 keywords (task plus tool or stack).
It covers choosing or setting up a tool, library, skill or model, and unexplained errors; it has nothing for renames, formatting or explanations.
<!-- /whatworks -->
```

### Windsurf / Devin Desktop

- Windsurf became Devin Desktop (June 2026); older builds use Cascade. Add `"whatworks": { "url": "https://whatworks.dev/mcp" }` under `mcpServers` in `.devin/mcp_config.json` (project) or `~/.config/devin/mcp_config.json` (user) for Devin Local (create the file if needed; keep every other entry).
- For older Windsurf (Cascade) use the key `serverUrl` instead of `url`. The config file location differs between versions (`~/.codeium/windsurf/mcp_config.json` is reported for older builds): if the client does not list WhatWorks, try the other path.
- Devin Local asks for approval the first time a tool is used (`mcp__whatworks__search`): tell the user to allow it. Only to report a trial, sign in with `devin mcp login whatworks`; in Cascade use the Authenticate button when the server shows "Needs auth".
- Then offer to add the optional note to `AGENTS.md`: show the exact block first and write it only after the user agrees; skip it if the file already contains `<!-- whatworks -->`. (Devin Desktop reads the project's AGENTS.md).
```markdown
<!-- whatworks -->
WhatWorks (MCP server `whatworks`) keeps results from people who tried AI models, tools and techniques; its `search` tool takes 2-4 keywords (task plus tool or stack).
It covers choosing or setting up a tool, library, skill or model, and unexplained errors; it has nothing for renames, formatting or explanations.
<!-- /whatworks -->
```

### Gemini CLI

- Add `"whatworks": { "httpUrl": "https://whatworks.dev/mcp" }` under `mcpServers` in `~/.gemini/settings.json` (or `.gemini/settings.json` in the project; the key is `httpUrl`, not `url`; keep every other entry and create the file if needed).
- Only when the user wants to report a trial, tell them to run `/mcp auth whatworks` in Gemini CLI and approve the OAuth prompt for GitHub sign-in. Gemini CLI asks for approval the first time a tool is used.
- Then offer to add the optional note to `GEMINI.md`: show the exact block first and write it only after the user agrees; skip it if the file already contains `<!-- whatworks -->`. Gemini CLI reads `AGENTS.md` only if `.gemini/settings.json` lists it under `context.fileName`; GEMINI.md needs no setting.
```markdown
<!-- whatworks -->
WhatWorks (MCP server `whatworks`) keeps results from people who tried AI models, tools and techniques; its `search` tool takes 2-4 keywords (task plus tool or stack).
It covers choosing or setting up a tool, library, skill or model, and unexplained errors; it has nothing for renames, formatting or explanations.
<!-- /whatworks -->
```

### ChatGPT · claude.ai

- You can't add a connector yourself here. Tell the user exactly where to click:
- claude.ai: Customize → Connectors → + Add → Add custom connector, URL `https://whatworks.dev/mcp`; reading needs no sign-in. A connector belongs to the whole Claude account: on a shared account, everyone using it will see it.
- ChatGPT: open chatgpt.com/plugins, choose + → Add custom MCP server, give it a name and a short description, paste the URL https://whatworks.dev/mcp, use no authentication for reading (OAuth only to report a trial), accept the warning and choose "Create as a plugin". In a chat, type @ and pick WhatWorks first (ChatGPT only offers a plugin you select in that chat). Plans differ: if the option is missing, the plan may not include it.
- Then ask by name, in your own words: "Check WhatWorks first: which library should I use for rate limiting in a Next.js API?"

## Verify

- Claude Code: `claude mcp list` shows `whatworks: … ✔ Connected`. Other clients have a similar MCP status view.
- If the WhatWorks tools are available to you now, call `search` once, for example with "review my diff before a pull request".
- If they aren't (the server was added during this session), check right away with the read-only endpoint: `curl -s -X POST https://whatworks.dev/mcp -H "content-type: application/json" -H "accept: application/json, text/event-stream" -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search","arguments":{"query":"review my diff before a pull request"}}}'`. In Claude Code: ask the user to run /mcp to check the server is listed; if it is not, to exit and run `claude --continue` to reopen this conversation with WhatWorks connected.
- Tell the user they are connected and can ask "check WhatWorks for …" any time.

- Check WhatWorks first: how do people add rate limiting to a Next.js API?
- Before you pick a library, look at WhatWorks for what people tried.
- Stuck on this error. Does WhatWorks have anything on it?

If the user asks you to check WhatWorks, call `search` with 2-4 keywords before answering.

More: https://whatworks.dev/connect (the same steps for people) · https://whatworks.dev/llms.txt
