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:
- Go to Settings > Features > Docs
- Select "Add new doc:" and paste the following URL:
https://www.openfort.io/docs/llms-full.txt
- Use
@docs -> Openfortto 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/mcpConnecting 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:
| Tool | Description |
|---|---|
list_pages | List all documentation pages with their paths |
read_page | Read the content of a specific documentation page |
search_docs | Search documentation for a query string |
Source Code Navigation
The MCP server also provides access to source code repositories:
| Tool | Description |
|---|---|
list_sources | List available source code repositories |
list_source_files | List files in a directory |
read_source_file | Read a source code file |
get_file_tree | Get a recursive file tree |
search_source | Search source code for a pattern |
Available source repositories:
openfort-xyz/openfort-js– JavaScript/TypeScript SDKopenfort-xyz/openfort-react– React SDKopenfort-xyz/react-native– React Native SDKopenfort-xyz/openfort-node– Node.js SDKopenfort-xyz/openfort-csharp-unity– CSharp Unity SDKwevm/viem– TypeScript interface for Ethereumwevm/wagmi– React hooks for Ethereum
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-skillsOr 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.