> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aiola.app/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To set up Aiola in a user's app, follow the guides in this order: /guides/set-up-analytics, /guides/track-ai-crawlers, /core-features/api-key, /guides/set-up-feedback, /guides/set-up-app-logs, then check /core-features/setup-health.
> Copy endpoints, headers and payload fields exactly from the guides and /reference/api. Do not invent fields, endpoints or package names.
> The analytics tracking ID is public. The project key is secret: keep Feedback submissions behind a server route that holds it as AIOLA_KEY.
> The JavaScript logger is the npm package @aiolaapp/logger. Aiola has not published a Python package, so do not run pip install aiola. Python and other languages send errors over HTTP (/reference/app-logs-http).
> Hosted Analytics, Feedback, App Logs and hosted MCP need Pro or an active trial. For live project data, connect the hosted MCP server at https://aiola.app/api/mcp (/guides/mcp-connector).

# Use Aiola Docs With AI Coding Agents

> Connect AI coding agents to Aiola docs via MCP, skills, and llms.txt, use copy-paste setup prompts, and query live project data.

You can give your AI coding agent access to Aiola's documentation so it can read setup guides, install integrations, and wire your codebase automatically. You can also connect external agents to Aiola's hosted MCP server to query live analytics, logs, and user feedback.

## Give your agent these docs

Aiola provides documentation in formats designed specifically for AI coding agents.

### Docs MCP server

Connect your AI coding client to the official Aiola docs MCP server:

* **Server URL**: `https://docs.aiola.app/mcp`
* **Transport**: Streamable HTTP
* **Available tools**: `search_aiola`, `query_docs_filesystem_aiola`, `submit_feedback`

Connect your client using the matching configuration below:

> [tab] Claude Code
>
> Run this command in your terminal:
>
> ```bash theme={null}
> claude mcp add --transport http aiola-docs https://docs.aiola.app/mcp
> ```

> [tab] Codex CLI
>
> Add this to your `~/.codex/config.toml`:
>
> ```toml theme={null}
> [mcp_servers.aiola-docs]
> url = "https://docs.aiola.app/mcp"
> ```

> [tab] Cursor
>
> Create or edit `.cursor/mcp.json` in your project folder. Merge the following `aiola-docs` entry into its existing `mcpServers` object:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "aiola-docs": {
>       "url": "https://docs.aiola.app/mcp"
>     }
>   }
> }
> ```

> [tab] VS Code
>
> Add this to `.vscode/mcp.json`:
>
> ```json theme={null}
> {
>   "servers": {
>     "aiola-docs": {
>       "type": "http",
>       "url": "https://docs.aiola.app/mcp"
>     }
>   }
> }
> ```

> [tab] Claude (claude.ai)
>
> Open **Settings → Connectors → Add custom connector**, enter `Aiola Docs` for the name and `https://docs.aiola.app/mcp` for the URL, and click **Add**.

### Install as an agent skill

Install the Aiola agent skill directly into your coding environment:

```bash theme={null}
npx skills add https://docs.aiola.app
```

This installs the skill defined in [skill.md](https://docs.aiola.app/skill.md) and discovery metadata at `https://docs.aiola.app/.well-known/skills/index.json`.

### Direct Markdown and llms.txt

* **LLM Index**: `https://docs.aiola.app/llms.txt` provides an organized index of all documentation pages.
* **Full Text**: `https://docs.aiola.app/llms-full.txt` packages the entire documentation site into a single text file.
* **Per-page Markdown**: Append `.md` to any documentation URL to fetch its clean Markdown source without web chrome (for example, `https://docs.aiola.app/guides/set-up-analytics.md`).
* **Page contextual menu**: At the top of every documentation page, use the interactive actions menu to **Copy page**, **View as Markdown**, **Open in ChatGPT / Claude / Perplexity / Grok**, **Connect to Cursor / VS Code**, or open **MCP** settings.

## Copy-paste setup prompts

Paste one of these prompts into your AI coding agent to have it install and configure Aiola in your project. Replace the capitalised placeholders with your own values first.

You can also use the in-app **Add to App** button (which opens a project chat with the setup instructions) or **Copy prompt** button directly inside Aiola under **Settings → Analytics** ([Analytics guide](https://docs.aiola.app/guides/set-up-analytics.md)), **Settings → Feedback** ([Feedback guide](https://docs.aiola.app/guides/set-up-feedback.md)), and **Settings → App Logs** ([App Logs guide](https://docs.aiola.app/guides/set-up-app-logs.md)).

> [tab] Analytics & AI Crawlers
>
> Copy and fill in your Tracking ID and production domain from **Settings → Analytics → Tracking**:
>
> ```text theme={null}
> Read the setup documentation at:
> - https://docs.aiola.app/guides/set-up-analytics.md
> - https://docs.aiola.app/guides/track-ai-crawlers.md
>
> Configure Aiola Website Analytics and server-side AI Crawler Tracking in this repository:
> - Tracking ID: YOUR_TRACKING_ID
> - Production Domain: example.com
>
> Requirements:
> 1. Inspect this repository's framework and install the defer script tag:
>    <script defer src="https://cdn.aiola.app/analytics.js" data-site-id="YOUR_TRACKING_ID" data-domain="example.com"></script>
>    Install it in the root layout or HTML template. Leave data-host-url unset so events post directly to https://aiola.app/api/collect.
> 2. Add server-side AI crawler tracking middleware or request handlers matching this stack (Next.js middleware.ts / proxy.ts, Cloudflare Pages Functions, or Express).
> 3. Include the exact comment "// aiola-bot-tracking v2", the full bot regex, Signature-Agent checking, country forwarding in the JSON body, and 404 response status tracking where supported.
> 4. Give me the exact curl command to send a test crawler hit, for example curl -A 'GPTBot' https://example.com/, so I can verify it in Analytics -> AI.
> ```

> [tab] Feedback Forms
>
> Copy and fill in your Project API Key from **Settings → API Key**:
>
> ```text theme={null}
> Read the setup documentation at:
> - https://docs.aiola.app/guides/set-up-feedback.md
>
> Configure Aiola Feedback forms in this repository:
> - Project API Key: YOUR_PROJECT_KEY
>
> Security Requirement:
> - The Project API Key is a secret. Store it exclusively in server-side environment variables as AIOLA_KEY (e.g., .env.local). NEVER expose this key in client-side code, public bundles, or public env vars.
>
> Implementation:
> 1. Create a server-side route (e.g., app/api/report/route.ts in Next.js or /api/report in Express) that receives client form submissions and forwards them upstream to:
>    https://lhrsgoaselmgophvbqme.supabase.co/functions/v1/submit-feedback
>    using headers:
>    - Authorization: Bearer <AIOLA_KEY>
>    - Content-Type: application/json
> 2. Add frontend dialog components using the field keys and required values from the project’s saved Feedback forms. If unchanged, the required issue fields are title, email, device, and description; feature requests require title and description. Send type: "issue" or type: "feature_request".
> 3. Connect both forms to visible buttons or menu items in the app's navigation or footer.
> 4. Provide a curl test command to send a test submission directly to verify the API key and fields.
> ```

> [tab] App Logs
>
> Feedback and App Logs share one project key. The browser logger examples expose that key in the client bundle. To keep it secret, use `AIOLA_KEY` for server-only capture and omit browser initialization. Browser error capture needs a backend forwarding route.
>
> Copy and fill in your Project API Key from **Settings → API Key**:
>
> ```text theme={null}
> Read the setup documentation at:
> - https://docs.aiola.app/guides/set-up-app-logs.md
>
> Install and configure Aiola App Logs error capture in this repository:
> - Project API Key: YOUR_PROJECT_KEY
> - Release version: 1.0.0
>
> Implementation:
> 1. Install the logger package:
>    - For JavaScript/TypeScript: npm install @aiolaapp/logger@0.5.5
>    - For Python: Aiola has not published a Python package, so do not run pip install aiola. Send errors over HTTP with the Python example at https://docs.aiola.app/reference/app-logs-http.md
> 2. Configure environment variables:
>    - For Next.js: NEXT_PUBLIC_AIOLA_KEY=YOUR_PROJECT_KEY in .env.local and production environment
>    - For Vite/React: VITE_AIOLA_KEY=YOUR_PROJECT_KEY
>    - For Node.js, Python and other servers: AIOLA_KEY=YOUR_PROJECT_KEY
> 3. Initialize the SDK at startup:
>    - In Next.js: instrumentation-client.ts for browser capture and instrumentation.ts for server capture
>    - In other runtimes: at app startup before serving requests
> 4. Wrap API route handlers or error boundaries, ensuring async handlers await Aiola.flushAsync() before exiting.
> 5. Add a temporary test endpoint or call to trigger an exception, verify it appears in Aiola App Logs, and explain how to upload production source maps using the logger CLI.
> ```

> [tab] All-in-one Integration
>
> Feedback and App Logs share one project key. The browser logger examples expose that key in the client bundle. To keep it secret, use `AIOLA_KEY` for server-only capture and omit browser initialization. Browser error capture needs a backend forwarding route.
>
> Copy and fill in your Tracking ID, domain, and Project API Key:
>
> ```text theme={null}
> Read all four setup guides:
> - https://docs.aiola.app/guides/set-up-analytics.md
> - https://docs.aiola.app/guides/track-ai-crawlers.md
> - https://docs.aiola.app/guides/set-up-feedback.md
> - https://docs.aiola.app/guides/set-up-app-logs.md
>
> Integrate all Aiola services into this repository:
> - Tracking ID: YOUR_TRACKING_ID
> - Production Domain: example.com
> - Project API Key: YOUR_PROJECT_KEY
> - Release Version: 1.0.0
>
> Tasks:
> 1. Analytics: Add the defer script tag to the root HTML layout, posting directly to https://aiola.app/api/collect.
> 2. AI Crawlers: Add server-side crawler middleware with the "// aiola-bot-tracking v2" marker and 404 status tracking.
> 3. Feedback: Store AIOLA_KEY in server environment variables. Create a server route (/api/report) forwarding to the feedback endpoint with Bearer auth, and add UI dialogs for Issues and Feature Requests.
> 4. App Logs: Install @aiolaapp/logger@0.5.5, initialize browser and server capture, wrap route handlers, and configure source map upload commands.
> 5. Verification: Check that the local integration satisfies Aiola Setup Health requirements and supply test commands for verification.
> ```

## Give your agent live project data

In addition to documentation, you can give your AI agents access to live project metrics, runtime logs, and user feedback.

### Hosted MCP server

Aiola provides a hosted Model Context Protocol (MCP) server that external AI clients can query over Streamable HTTP without needing Aiola Desktop running:

* **Server URL**: `https://aiola.app/api/mcp`
* **Authentication**: OAuth 2.1 (browser sign-in)
* **Requirement**: Pro or an active trial (GUI Lifetime excluded)

The hosted server exposes **11 tools**:

1. `list_projects`: Discover available projects, site IDs, and active feature flags (`hasAnalytics`, `hasLogs`, `hasFeedback`).
2. `get_analytics_overview`: Retrieve high-level traffic summaries, visitors, sessions, pageviews, and top pages.
3. `get_analytics`: Run specific analytics queries (such as timeseries, top pages, referrers, channels, or retention).
4. `get_analytics_definitions`: Inspect saved funnels and computed conversion results.
5. `get_search_keywords`: Query Google Search Console and Bing Webmaster Tools keyword rankings and page clicks.
6. `get_indexing_issues`: Check Google indexing reasons and Bing crawl errors.
7. `get_app_logs`: List grouped error and warning issues.
8. `get_app_log_events`: Inspect individual error occurrences and stack traces for a specific log group.
9. `update_app_log_status`: Update issue statuses (`open`, `in_progress`, `human_review`, `closed`, `ignored`).
10. `get_feedback`: Retrieve user bug reports and feature request submissions.
11. `update_feedback`: Update feedback statuses.

To connect your external client to hosted project data, follow [Connect an AI Client through MCP](https://docs.aiola.app/guides/mcp-connector.md) and inspect [Hosted MCP Reference](https://docs.aiola.app/core-features/hosted-mcp.md).

### In-app workspace tools

On eligible local workspaces, Aiola installs its managed project-data MCP bridge. GUI Lifetime excludes this bridge. Third-party workspace MCP servers must be enabled and authenticated. Claude also requires project approval. See [Workspace MCP Servers](https://docs.aiola.app/core-features/mcp-servers.md) for agent support and setup.

## Next step

> [card] [Aiola Quickstart](https://docs.aiola.app/getting-started/quickstart.md)
>
> Follow the complete start-to-finish checklist from installation to live data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.