Skip to content
Talk to an Engineer Dashboard

Search Scalekit docs with ref.tools

Configure ref.tools MCP to search Scalekit documentation directly from Cursor, Claude Code, or Windsurf without leaving your IDE.

Every time you need to look up a Scalekit API, scope name, or configuration option, you break your flow: open a new tab, search the docs, copy the answer, switch back. With ref.tools configured as an MCP server, your AI coding assistant can search Scalekit documentation inline and return accurate, up-to-date answers without you leaving the editor. Setup takes about two minutes.

AI coding assistants are good at generating code, but they have two failure modes when it comes to third-party docs:

  • Hallucination — The model invents an API that doesn’t exist or gets parameter names wrong because its training data is incomplete
  • Stale knowledge — Even accurate training data goes out of date as SDKs and APIs evolve

Both problems get worse when you’re working with a narrowly scoped platform like Scalekit. The model may have seen very little training data about it, and what it did see may be outdated.

The standard workaround is to paste docs into the chat manually — which means constant context-switching between your editor and a browser. ref.tools solves both problems by connecting your AI assistant directly to live Scalekit documentation through an MCP tool call.

This cookbook is for you if:

  • ✅ You use Cursor, Claude Code, Windsurf, or another MCP-compatible AI assistant
  • ✅ You’re building with Scalekit (auth, SSO, MCP servers, M2M, SCIM)
  • ✅ You want accurate, up-to-date answers without context-switching to a browser

You don’t need this if:

  • ❌ You prefer pasting docs into your chat manually
  • ❌ Your AI assistant doesn’t support MCP

ref.tools is a documentation search platform that indexes third-party docs — including Scalekit — and exposes them as an MCP tool called ref_search_documentation. Once you add the ref.tools MCP server to your AI assistant, you can prompt it to search Scalekit docs and it will call the tool and return current results directly in chat.

The server supports two transports:

  • Streamable HTTP (recommended) — Direct HTTP connection using your API key; lower latency, no local process required
  • stdio (legacy) — Runs a local npx process; works with any MCP client that supports stdio
    1. Go to ref.tools and sign in
    2. Search for Scalekit to confirm the documentation source is indexed
    3. Open the Quick Install panel for Scalekit — your API key is pre-filled in the install commands
    4. Copy your API key; you’ll use it in the next step
  1. Pick your tool and apply the matching configuration.

    Run this command in your terminal to add the MCP server globally across all projects:

    Terminal window
    claude mcp add --transport http ref-context https://api.ref.tools/mcp \
    --header "x-ref-api-key: YOUR_API_KEY"

    To scope it to a single project instead, add --scope project to the command.

    Add the following to .cursor/mcp.json in your project root (or via Settings → MCP):

    .cursor/mcp.json
    {
    "ref-context": {
    "type": "http",
    "url": "https://api.ref.tools/mcp?apiKey=YOUR_API_KEY"
    }
    }

    Add the following to ~/.codeium/windsurf/mcp_config.json:

    ~/.codeium/windsurf/mcp_config.json
    {
    "ref-context": {
    "serverUrl": "https://api.ref.tools/mcp?apiKey=YOUR_API_KEY"
    }
    }

    For any MCP client that supports stdio, add to your MCP config:

    mcp.json
    {
    "ref-context": {
    "command": "npx",
    "args": ["ref-tools-mcp@latest"],
    "env": {
    "REF_API_KEY": "YOUR_API_KEY"
    }
    }
    }

    This requires Node.js installed locally. The npx command fetches and runs the server on first use.

    1. Restart your AI assistant (or use its MCP reload command if available)
    2. Open a new chat and send this prompt:
      Use ref to look up how to add OAuth 2.1 authorization to an MCP server with Scalekit
    3. Your assistant should call the ref_search_documentation tool and return results from docs.scalekit.com

    If the tool doesn’t appear, check that you restarted the assistant after saving the config, and that the API key is correct.

Once ref.tools is connected, use phrases like “use ref to…” or “look up in ref…” to trigger the tool explicitly:

  • Use ref to find the Scalekit MCP auth quickstart
  • Look up how to configure SSO with Scalekit
  • Use ref to find Scalekit M2M token documentation
  • Search Scalekit docs for SCIM provisioning setup
  • Use ref to look up Scalekit SDK environment variables

You can also just ask naturally — most assistants will call the tool automatically when the question is about Scalekit.

API key committed to git
  • Symptom: Your key appears in git history or a public repository
  • Cause: Config file with the key inline was committed
  • Fix: Use an environment variable ($REF_API_KEY) and add the config file to .gitignore if it contains real credentials
Wrong transport for your client
  • Symptom: MCP server fails to connect or appears as disconnected
  • Cause: Some clients only support stdio; others support both HTTP and stdio
  • Fix: Check your client’s MCP documentation. Cursor and Claude Code support streamable HTTP. Older or less common clients may require stdio.
Server name not matching what the client expects
  • Symptom: Tool calls fail with “unknown tool” or the server doesn’t appear in the tool list
  • Cause: The config key (e.g., ref-context) doesn’t match what you reference in prompts, or the client uses a different config field name
  • Fix: Confirm the key in your config file matches the server name shown in your client’s MCP settings panel
Tool not appearing after config change
  • Symptom: You updated the config but the ref_search_documentation tool isn’t available
  • Cause: The MCP connection wasn’t refreshed
  • Fix: Fully restart your AI assistant, or use its MCP reload command (Claude Code: claude mcp list to verify; Cursor: reload the window)

For further setup, authentication options, and available documentation sources, see the links below.