Skip to main content
This documentation is optimized for AI coding assistants. Whether you’re using Cursor, Windsurf, Claude, ChatGPT, or other AI tools, there are multiple ways to give them context about near-kit.
Important: near-kit is NOT near-api-js. AI models often confuse the two. Always provide context to ensure the AI uses the correct, modern API.

Quick Access Methods

Contextual Menu

Select any text on this site and use the popup menu to send it directly to ChatGPT, Claude, Cursor, or VS Code.

MCP Server

Connect your AI tool to our Model Context Protocol server for live documentation access.

llms.txt

Fetch the full documentation as a single text file optimized for LLMs.

Markdown Export

Click the copy button on any page to get markdown for your AI context.

Model Context Protocol (MCP)

MCP allows AI tools to connect directly to our documentation server. This gives your AI assistant live access to search and read the docs.

Supported Tools

  • Claude Desktop - Native MCP support
  • Cursor - Via MCP extension
  • VS Code - Via Copilot MCP extensions

Connection URL

https://kit.near.tools/mcp
Add to your claude_desktop_config.json:
{
  "mcpServers": {
    "near-kit": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-remote", "https://kit.near.tools/mcp"]
    }
  }
}

llms.txt Files

The full documentation is available as plain text files optimized for LLM context windows.
A condensed table of contents with page summaries. Use this if you’re hitting context window limits.URL: https://kit.near.tools/llms.txt

Using with AI Assistants

  1. Open the Chat pane
  2. Type @Docs and add the URL: https://kit.near.tools/llms-full.txt
  3. Or use @Web to fetch any documentation page directly
The editor will ingest the documentation as a reference file.

When starting a new AI session, use this prompt to ensure accurate responses:
I am building an application using the `near-kit` TypeScript library for NEAR blockchain.

IMPORTANT: `near-kit` is NOT `near-api-js`. They are completely different libraries.
- Do NOT use `near-api-js` patterns (like `utils.format`, `account.functionCall`, `BN`)
- Use human-readable strings for amounts: "10 NEAR", "30 Tgas"
- Use the fluent transaction builder: `near.transaction().transfer().send()`
- Reference the provided documentation as the source of truth
This prompt helps prevent the AI from hallucinating near-api-js patterns, which is a common issue since that library has more training data.