# Snag Docs - Complete Documentation > This file contains the complete documentation for Snag Docs. > Total pages: 244 --- ## Using AI Coding Assistants? *Connect Cursor, Claude Code, or Copilot to Snag Docs via MCP server or llms.txt for context-aware API coding help and Web3 development support.* # Use Snag Docs with Your AI Coding Assistant Supercharge your development workflow by connecting your favorite AI coding assistants—like **Cursor**, **WindSurf**, or **Claude Code**—to Snag Docs. There are two main ways to do this: ## 1. Connect via Model Context Protocol (MCP) The **[Model Context Protocol (MCP)](https://modelcontextprotocol.io/)** lets you connect AI tools directly to Snag Docs for real-time, context-aware answers and code suggestions. Run the following command to generate an MCP server from Snag Docs: ```bash npx mint-mcp add snag ``` This sets up an MCP server that your AI tools can automatically detect and use. Once the server is running, open your AI coding assistant. It should automatically detect and integrate with the MCP server for Snag Docs. You can now ask questions and get context-aware code suggestions powered by your own documentation. ## 2. Index Snag Docs via `llms.txt` or `llms-full.txt` AI tools can index our documentation for smarter, more relevant answers by using one of two special files: - **[`llms.txt`](https://docs.snagsolutions.io/llms.txt)** – A machine-readable map of your documentation, optimized for LLMs. - **`llms-full.txt`** – A single file containing all your documentation content, ideal for bulk ingestion. Many AI editors allow you to provide a link to documentation for indexing. Use one of the following: - [https://docs.snagsolutions.io/llms.txt](https://docs.snagsolutions.io/llms.txt) - [https://docs.snagsolutions.io/llms-full.txt](https://docs.snagsolutions.io/llms-full.txt) Some editors (like Cursor) automatically index documentation you add in settings. Others may require referencing the docs in the prompt using an **@** symbol or similar. For example: ``` @docs What is the loyalty program setup process? ``` Check your tool’s documentation for exact syntax. After linking your documentation, your AI assistant will use Snag Docs as a knowledge base for completions, suggestions, and answers. You’ll get smarter, context-aware help based on the latest Snag Docs content. --- By connecting your AI coding assistant to Snag Docs, you unlock smarter, faster, and more accurate development support—right where you need it. ## Related pages Snag REST API authentication, endpoints, and base URL configuration. TypeScript SDK for type-safe interaction with Snag APIs. Set up your API key and make your first Snag API call. Write and deploy serverless functions for custom onchain logic. --- ## Welcome to Snag Docs *Snag is the leading onchain loyalty platform, helping Web3 brands incentivize engagement, automate rewards and track user contributions. Power growth with customizable point-based programs and integrated marketplace features.*