Claude Desktop
Add the MCP Server
Open yourclaude_desktop_config.json file. You can find it at:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\\Claude\\claude_desktop_config.json
mcpServers key:
claude_desktop_config.json
Authenticate
The first time Claude calls any Hyper tool, the MCP server will redirect you through an OAuth 2.0 flow. A browser window opens and prompts you to sign in with Google. After you approve, your bearer token is saved to~/.hyper/token and all future requests are authenticated automatically.
Verify the Connection
If Claude doesn’t find the
connect tool, confirm that claude_desktop_config.json is valid JSON and that you fully restarted Claude Desktop (not just closed the window).Configure Automatic Memory with Hooks
Without hooks, you need to manually ask Claude to remember things. With hooks, Hyper’s three lifecycle events fire automatically on every session.SessionStart
Runs
hyper connect when a session begins, loading your identity and workspace context into Claude’s context window.UserPromptSubmit
Runs
hyper ask with each message you send, retrieving memories relevant to your current question.Stop
Runs
hyper remember when a session ends, evaluating the conversation and persisting anything worth saving.Always-on
Once configured, hooks fire silently in the background — no extra prompts, no manual steps.
Hooks for Claude Desktop
Add ahooks.json file alongside your claude_desktop_config.json. The exact path depends on your OS (same directory as the config file above):
hooks.json
Hooks for Claude Code
Claude Code reads hooks from.claude/settings.json in your project root (or your home directory for global settings). Add the hooks key to that file:
.claude/settings.json
Troubleshooting
| Symptom | Fix |
|---|---|
Claude says it can’t find the connect tool | Verify claude_desktop_config.json is valid JSON and restart Claude Desktop |
| OAuth window appears but loops | Delete ~/.hyper/token and try again |
| Hooks don’t fire | Confirm the hooks file is saved in the correct directory and has no JSON syntax errors |
| Context seems stale | Call connect manually to force a fresh workspace load |