Skip to content
LogoLogo

Building with AI

Openfort documentation is built with AI-first principles, providing multiple features to make documentation accessible to LLMs and AI assistants.

llms.txt

The docs automatically generate llms.txt files for LLM consumption:

  • /llms.txt – A concise index of all pages with titles and descriptions
  • /llms-full.txt – Complete documentation content in a single file

These files are generated at build time and served at the root of the site.

Using with AI-powered IDEs

Copy and paste the following URL into an LLM or AI agent like Cursor or Replit to help it understand the correct syntax of the Openfort SDKs:

  1. Go to Settings > Features > Docs
  2. Select "Add new doc:" and paste the following URL:
https://www.openfort.io/docs/llms-full.txt
  1. Use @docs -> Openfort to reference Openfort's docs in your code.

Relevant files:

Markdown Rendering for AI Agents

AI user agents are automatically detected and served raw Markdown instead of rendered HTML. This provides better token efficiency and easier parsing for LLMs.

Supported AI Agents

Popular user agents that are automatically detected:

  • OpenAI: GPTBot, ChatGPT-User
  • Anthropic: ClaudeBot, claude-web
  • Google: Googlebot

See the full list of supported agents for the most up-to-date list.

Manual Markdown Access

Any page can be accessed as Markdown by appending .md to the URL:

https://www.openfort.io/docs/products/embedded-wallet/react.md

This is useful for copying documentation into AI conversations or for custom integrations.

Ask AI Menu

The docs include a built-in "Ask AI" menu (⌘I / Ctrl+I) that provides:

  • Open in ChatGPT/Claude: Opens the current page context in popular AI assistants
  • Copy page for AI: Copies the page content as Markdown to your clipboard
  • View as Markdown: Opens the raw Markdown version of the current page
  • Copy MCP URL: Copies the MCP server URL for AI assistant configuration

MCP Server

The docs include a built-in Model Context Protocol (MCP) server that allows AI assistants to navigate documentation and source code programmatically.

claude mcp add --transport http openfort https://www.openfort.io/api/mcp

Connecting AI Assistants

Configure your AI assistant to connect to the MCP server:

{
  "mcpServers": {
    "openfort-docs": {
      "url": "https://www.openfort.io/api/mcp"
    }
  }
}

Available Tools

The MCP server exposes these tools to AI assistants:

ToolDescription
list_pagesList all documentation pages with their paths
read_pageRead the content of a specific documentation page
search_docsSearch documentation for a query string

Source Code Navigation

The MCP server also provides access to source code repositories:

ToolDescription
list_sourcesList available source code repositories
list_source_filesList files in a directory
read_source_fileRead a source code file
get_file_treeGet a recursive file tree
search_sourceSearch source code for a pattern

Available source repositories:

Agent Skills

Install the Openfort Agent Skills to give AI coding agents (Amp, Claude Code, etc.) access to Openfort documentation, source code via MCP, and examples. Check out openfort-xyz/agent-skills for more info on available skills.

Installation

npx skills add openfort-xyz/agent-skills

Or manually:

$ git clone https://github.com/openfort-xyz/agent-skills.git
$ cp -r agent-skills/skills/openfort ~/.config/agents/skills/

Or add to your project's .agents/skills/ directory for project-specific access.