Config formats and tool refresh¶
How a client sees hangar's tools after an upgrade, and where each config format hangar connect
writes comes from.
When hangar's tools change¶
After an upgrade that adds or changes tools, a client has to fetch the tool list again to see them. Claude Code, Codex and the other CLIs do that when a session starts. The claude.ai web, desktop and mobile apps don't: they keep the list from when the connector was added (claude-code#38324).
Remove the hangar connector and add it again (Settings → Connectors) to refresh it. hangar notices calls from an
older list and says so in the tool's answer, at most once an hour (deployment notes).
serverInfo.version (<version>+tools.<hash>) tells you which tool list a hangar serves.
Where these formats come from¶
Each format was checked against the client itself or its official docs on 2026-10-13:
- Claude Code 2.1.296:
claude mcp add --scope user --transport http … --header …writes exactly this entry to.claude.json, andclaude mcp get hangarreports Connected for an entry written byhangar connect. See also code.claude.com/docs/en/mcp. - Codex CLI 0.162.1:
codex mcp add --url … --bearer-token-env-var …writes[mcp_servers.<name>], andcodex mcp get --jsonparses thehttp_headers,startup_timeout_secandtool_timeout_seckeys.codex mcp loginhandles OAuth. - Cursor: cursor.com/docs/mcp documents
~/.cursor/mcp.json,mcpServerswithurlandheaders, and OAuth for remote servers. - VS Code: the MCP configuration reference documents
serverswith"type": "http",urlandheaders, inmcp.jsonin the user profile. The profile folder is the one the settings docs give for the usersettings.json. The docs don't say that VS Code registers itself with an OAuth server, so--auth oauthisn't offered for VS Code. - Gemini CLI 0.63.0:
gemini mcp add --scope user --transport http -H …writes exactly this entry. The CLI readsGEMINI_CLI_HOME, and/mcp auth <name>handles OAuth. - Antigravity (checked 2026-10-19): antigravity.google/docs/mcp documents
the global
~/.gemini/config/mcp_config.json. A project's own is.agents/mcp_config.json: pass it with--config.- Its
mcpServersentries for remote servers must useserverUrl, withheaders. It doesn't supporturlorhttpUrl, so Gemini CLI's entry doesn't work there. - OAuth is by dynamic client registration, with
https://antigravity.google/oauth-callbackas the redirect. - It documents no environment-variable expansion in that file, so the token is written into it, mode 600.
- The install page names the CLI
agy. It is not yet qualified against a liveagy, including how it handles hangar's long tool calls (deployment notes).
- Its
- Claude Desktop: the config file locations and the
--header-fileand--allow-httpflags come from themcp-remote0.14.3 README and its code.--allow-httpis for plain http to hosts other than localhost.