Add the following JSON to your Gemini CLI configuration file (~/.gemini/settings.json):
${codeBlock("settings.json", `{
"mcpServers": {
"stack-auth": {
"httpUrl": "${mcpUrl}",
"headers": {
"Accept": "application/json, text/event-stream"
}
}
}
}`)}`,
},
];
}
function getMarkdownInstructions(mcpUrl: string, cursorInstallUrl: string, vsCodeInstallUrl: string): string {
return `Cursor
#### Installation Link
[](${cursorInstallUrl})
#### Manual Installation
Add the following to your \`mcp.json\` file:
\`\`\`json
{
"mcpServers": {
"stack-auth": {
"url": "${mcpUrl}"
}
}
}
\`\`\`
VSCode
#### Installation Link
[](${vsCodeInstallUrl})
#### Manual Installation
Open a terminal and run the following command:
\`\`\`
code --add-mcp '{"type":"http","name":"stack-auth","url":"${mcpUrl}"}'
\`\`\`
Then, from inside VS Code, open the .vscode/mcp.json file and click "Start server".
Codex
Open a terminal and run the following command:
\`\`\`
codex mcp add stack-auth --url ${mcpUrl}
\`\`\`
Verify it is configured:
\`\`\`
codex mcp list
\`\`\`
Alternatively, add the following to \`~/.codex/config.toml\`:
\`\`\`toml
[mcp_servers.stack-auth]
url = "${mcpUrl}"
\`\`\`
Claude Code
Open a terminal and run the following command:
\`\`\`
claude mcp add --transport http stack-auth ${mcpUrl}
\`\`\`
From within Claude Code, you can use the \`/mcp\` command to get more information about the server.
Claude Desktop
Open Claude Desktop and navigate to Settings > Connectors > Add Custom Connector.
Enter the name as \`stack-auth\` and the remote MCP server URL as \`${mcpUrl}\`.
Windsurf
Copy the following JSON to your Windsurf MCP config file:
\`\`\`json
{
"mcpServers": {
"stack-auth": {
"serverUrl": "${mcpUrl}"
}
}
}
\`\`\`
ChatGPT
*Note: In Team, Enterprise, and Edu workspaces, only workspace owners and admins have permission*
- Navigate to **Settings > Connectors**
- Add a custom connector with the server URL: \`${mcpUrl}\`
- It should then be visible in the Composer > Deep Research tool
- You may need to add the server as a source
*Connectors can only be used with **Deep Research***
Gemini CLI
Add the following JSON to your Gemini CLI configuration file (\`~/.gemini/settings.json\`):
\`\`\`json
{
"mcpServers": {
"stack-auth": {
"httpUrl": "${mcpUrl}",
"headers": {
"Accept": "application/json, text/event-stream"
}
}
}
}
\`\`\`
`;
}
function renderTabs(tabs: SetupTab[]): string {
const tabButtons = tabs.map((tab, index) => ``).join("");
const tabPanels = tabs.map((tab, index) => `${tab.content}`).join("");
return `
${renderTabs(tabs)}
Markdown InstructionsIf you want to include instructions for all clients in your project's README.md file, feel free to copy the following markdown:
${escapeHtml(markdownInstructions)}
Features
The Hexclave MCP server exposes ask_hexclave, which answers questions using live documentation retrieval and the docs-site AI assistant. It can help with:
Authentication flows: Sign-in, sign-up, and user management
APIs and SDKs: Endpoints, examples, and framework integration
Best practices: Security and configuration guidance