Use Scalekit docs in your AI coding agent
Use Context7 to give your AI coding agent accurate, up-to-date Scalekit documentation so it can help you integrate faster and with fewer errors.
AI coding agents like Claude Code and Cursor work from training data that can be months out of date. When you ask them to help integrate Scalekit, they may reference old APIs, deprecated patterns, or incorrect parameter names — leading to bugs that are hard to trace.
Context7 provides two ways to access live, version-accurate documentation:
- CLI — query docs directly from your terminal (recommended for most developers)
- MCP server — integrates with AI agents for automatic doc injection
Both methods pull the same up-to-date content. Choose CLI for direct control, or MCP server for seamless AI agent integration.
Scalekit’s full developer documentation is indexed on Context7 at context7.com/scalekit-inc/developer-docs, covering hundreds of pages and thousands of code snippets across SSO, SCIM, MCP auth, agent auth, and connected accounts.
Get accurate answers about Scalekit
Section titled “Get accurate answers about Scalekit”Context7 retrieves relevant documentation from the indexed Scalekit docs and delivers it to you or your agent. The AI then answers using accurate, current content rather than training data.
Context7 provides three main capabilities:
library— resolve library IDs and discover docsdocs— fetch specific documentation sections- MCP server tools for AI agent integration
-
Set up Context7
Section titled “Set up Context7”Context7 can be set up via CLI or as an MCP server. Choose your method:
Install the Context7 CLI to query docs directly from your terminal.
One-off installation via npx:
Terminal window npx ctx7 --helpGlobal installation:
Terminal window npm install -g ctx7ctx7 --versionRequires Node.js 18 or higher.
The CLI provides three main capabilities:
- Fetch docs — query specific documentation sections
- Manage skills — generate AI agent skills for auto-invocation
- Configure MCP — set up MCP server integration
Context7 is configured as an MCP server in your coding agent. You can also add it directly from context7.com. Choose your tool:
Run one of the following commands in your terminal:
Local (stdio):
Terminal window claude mcp add --scope user context7 -- npx -y @upstash/context7-mcpRemote (HTTP):
Terminal window claude mcp add --scope user --transport http context7 https://mcp.context7.com/mcpTo verify the server was added:
Terminal window claude mcp list-
Open Settings > Cursor Settings > MCP and click Add New Global MCP Server.
Paste one of the following configs:
Remote server:
{"mcpServers": {"context7": {"url": "https://mcp.context7.com/mcp"}}}Local server:
{"mcpServers": {"context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp"]}}} -
Restart Cursor.
The easiest way is to install Context7 directly from the Claude Desktop interface:
- Open Claude Desktop and go to Customize > Connectors.
- Search for Context7 and click Install.
Alternatively, configure it manually via Settings > Developer > Edit Config and add to
claude_desktop_config.json:{"mcpServers": {"context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp"]}}}Restart Claude Desktop after saving.
-
Open Settings > Developer > Edit Config and open
windsurf_config.json. -
Add the following config and save:
{"mcpServers": {"context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp"]}}} -
Restart Windsurf.
-
Query Scalekit docs
Section titled “Query Scalekit docs”Querying Scalekit docs via CLI is a two-step process.
Step 1 — Resolve Scalekit library:
Terminal window ctx7 library scalekit "How to set up SSO"ctx7 library scalekit "SCIM user provisioning"ctx7 library scalekit "MCP authentication setup"Expected result for library selection:
Field Description Library ID /scalekit-inc/developer-docsCode Snippets High (hundreds of indexed examples) Source Reputation High Benchmark Score Quality score from 0 to 100 Step 2 — Fetch Scalekit docs:
Terminal window # SSO queriesctx7 docs /scalekit-inc/developer-docs "How to set up SSO with Scalekit"ctx7 docs /scalekit-inc/developer-docs "Configure SAML for enterprise SSO"# SCIM queriesctx7 docs /scalekit-inc/developer-docs "How to provision users with SCIM"ctx7 docs /scalekit-inc/developer-docs "Set up SCIM for Active Directory"# MCP auth queriesctx7 docs /scalekit-inc/developer-docs "Add MCP auth to my server"ctx7 docs /scalekit-inc/developer-docs "Configure agent authentication"# Connected accounts queriesctx7 docs /scalekit-inc/developer-docs "Configure connected accounts for GitHub OAuth"ctx7 docs /scalekit-inc/developer-docs "Set up Google OAuth integration"# JSON output for scriptingctx7 docs /scalekit-inc/developer-docs "SSO setup" --json# Pipe to other toolsctx7 docs /scalekit-inc/developer-docs "SCIM provisioning" | head -50Once Context7 is running, add
use context7to any prompt where you want current Scalekit documentation injected automatically.General Scalekit queries:
How do I set up SSO with Scalekit? use context7Show me how to provision users with SCIM using Scalekit. use context7Target Scalekit docs directly using the library path:
use library /scalekit-inc/developer-docs for how to add MCP auth to my serverCombine with version or feature specificity:
How do I configure connected accounts for GitHub OAuth with Scalekit? use context7 -
Auto-invoke Context7 (optional)
Section titled “Auto-invoke Context7 (optional)”Configure your coding agent to always use Context7 for library and API questions — no need to add “use context7” manually each time.
Use
ctx7 setup --clito configure Context7 for AI coding agents. This installs adocsskill that guides the agent to usectx7 libraryandctx7 docscommands for Scalekit documentation.Setup commands:
Terminal window # Interactive setup (prompts for agent)ctx7 setup --cli# Direct setup for specific agentsctx7 setup --cli --claude # Claude Code (~/.claude/skills)ctx7 setup --cli --cursor # Cursor (~/.cursor/skills)ctx7 setup --cli --universal # Universal (~/.config/agents/skills)# Project-specific setup (default is global)ctx7 setup --cli --project# Skip confirmation promptsctx7 setup --cli --yesWhat gets installed — CLI + Skills mode:
File Purpose Agent skills directory docsskill — guides the agent to usectx7 libraryandctx7 docsWhen the
docsskill is installed, your AI agent will automatically usectx7commands to fetch accurate Scalekit documentation when asked about SSO, SCIM, MCP auth, or other Scalekit features.Configure your coding agent to always use Context7 for library and API questions — no need to add “use context7” manually each time.
Add the following rule to your project’s
CLAUDE.mdfile:Always use Context7 MCP when I need library or API documentation, code generation, or setup and configuration steps.This applies project-wide. For a global rule, add it to
~/.claude/CLAUDE.md.Open Settings > Cursor Settings > Rules and add:
Always use Context7 MCP when I need library or API documentation, code generation, or setup and configuration steps. -
Increase rate limits with an API key
Section titled “Increase rate limits with an API key”The free tier of Context7 has rate limits. For heavier usage or team environments, get a free API key from context7.com/dashboard and add it to your configuration.
Local:
Terminal window claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEYRemote:
Terminal window claude mcp add --scope user --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcpRemote server with API key:
{"mcpServers": {"context7": {"url": "https://mcp.context7.com/mcp","headers": {"CONTEXT7_API_KEY": "YOUR_API_KEY"}}}}Local server with API key:
{"mcpServers": {"context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]}}}{"mcpServers": {"context7": {"command": "npx","args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]}}}Set an API key via environment variable for higher rate limits:
Terminal window # Set API key for current sessionexport CONTEXT7_API_KEY=your_key# Add to ~/.bashrc or ~/.zshrc for permanent useecho 'export CONTEXT7_API_KEY=your_key' >> ~/.bashrcAPI keys start with
ctx7sk. If authentication fails with a 401 error, verify the key format matches your method (HTTP header for MCP, environment variable for CLI).