MCP Setup
Connect Claude Code, Cursor, Claude.ai, and ChatGPT to the Hitfactor MCP server.
The Hitfactor MCP server runs over HTTP JSON-RPC 2.0 at:
https://hitfactorapp.com/api/v1/mcpIt supports initialize, ping, tools/list, and tools/call. Long-running tools return an operationId immediately instead of streaming over SSE; poll with operation_get until status is succeeded or failed.
Claude Code
Section titled “Claude Code”Option A: API Key (Recommended for CLI)
Section titled “Option A: API Key (Recommended for CLI)”Run this command with a key from /<workspace>/api:
claude mcp add --transport http hitfactor "https://hitfactorapp.com/api/v1/mcp" \ --header "x-api-key: hf_live_your_api_key"Option B: OAuth 2.1
Section titled “Option B: OAuth 2.1”Add the server without a header and sign in when Claude Code prompts you:
claude mcp add --transport http hitfactor "https://hitfactorapp.com/api/v1/mcp"Cursor
Section titled “Cursor”Option A: API Key
Section titled “Option A: API Key”Add hitfactor to ~/.cursor/mcp.json or .cursor/mcp.json:
{ "mcpServers": { "hitfactor": { "url": "https://hitfactorapp.com/api/v1/mcp", "headers": { "x-api-key": "hf_live_your_api_key" } } }}Option B: OAuth 2.1
Section titled “Option B: OAuth 2.1”Omit headers and let Cursor complete OAuth 2.1 discovery:
{ "mcpServers": { "hitfactor": { "url": "https://hitfactorapp.com/api/v1/mcp" } }}Claude.ai
Section titled “Claude.ai”Claude.ai connects to remote MCP servers using OAuth 2.1.
- Open Settings > Connectors in Claude.ai.
- Select Add custom connector.
- Enter
https://hitfactorapp.com/api/v1/mcpas the server URL. - Leave any API key field blank.
- Complete the Google sign-in and workspace consent prompt.
ChatGPT
Section titled “ChatGPT”ChatGPT connects to remote MCP servers using OAuth 2.1.
- Open Settings > Connectors (or MCP Settings) in ChatGPT.
- Add a custom remote MCP server.
- Enter
https://hitfactorapp.com/api/v1/mcpas the server URL. - Complete the Google sign-in and workspace consent prompt.
Idempotency in MCP
Section titled “Idempotency in MCP”To make a billed MCP tool call idempotent, include a unique requestId string (up to 255 characters) in the tool arguments. Replaying the same requestId with the same inputs returns the original result or operationId with 0 extra credits charged.