=== MCPner LLMs.txt Generator ===
Contributors: hemasherbeny
Donate link: https://dublyo.com
Tags: llm, ai, chatgpt, claude, llms.txt
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 1.4.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Make your website AI-ready with LLM-optimized content files. Generate llms.txt files for ChatGPT, Claude, and other AI systems.

== Description ==

**MCPner LLMs.txt Generator - Make Your Website AI-Ready**

MCPner LLMs.txt Generator creates a machine-readable text file (`/llms.txt`) from your WordPress content, helping AI systems like ChatGPT, Claude, and other LLMs understand your site structure and content.

Similar to how `robots.txt` helps search engines, `llms.txt` helps AI systems access your content in a clean, optimized format.

= Key Features =

* **Unlimited Content** - Include all your posts, pages, and custom post types
* **Quick Select Mode** - Easily choose which content types to include
* **Advanced Selection** - Pick specific items by taxonomy or individual selection
* **Per-Item Exclusion** - Toggle exclusion for individual posts/pages
* **Auto-Regeneration** - Automatically update when content changes
* **Robots.txt Integration** - Add AI bot rules for better discoverability
* **Static File Generation** - Creates a static `/llms.txt` file at your site root
* **SEO Plugin Integration** - Automatically uses meta descriptions from Yoast, Rank Math, or All in One SEO
* **Progress Indicator** - Visual feedback during file generation
* **Clean Output** - Properly formatted, human and machine-readable output

= Features Include =

* Unlimited links in your llms.txt file
* All content types (posts, pages, custom post types, WooCommerce products, etc.)
* Advanced Selection Mode with tree-based selection
* Auto-regeneration on content changes
* Scheduled regeneration options
* Robots.txt integration for AI bot rules
* Per-item exclusion toggle
* Advanced pattern and taxonomy exclusions
* Manual generation with progress indicator

= How It Works =

**Requirements:** WordPress Administrator access (user with `manage_options` capability)

1. Install and activate the plugin
2. Log in as an **Administrator** (not Editor/Author/Subscriber)
3. Go to **LLMs.txt** in your WordPress admin sidebar menu
4. On the Settings tab, you'll see the main dashboard with a "Generate Now" button
5. Optionally configure content selection in the "Content Selection" tab
6. Click **Generate Now** to create your llms.txt file
7. View your generated file at `https://yoursite.com/llms.txt`

AI systems and LLMs can now access your content at `https://yoursite.com/llms.txt`

= Run This on Dublyo Hosting =

This plugin now includes all core capabilities by default with no license gate. If you want managed WordPress hosting optimized for AI-era workflows, check [Dublyo](https://dublyo.com).

Dublyo helps teams run WordPress with automated infrastructure, lower hosting costs, and deployment-friendly tooling.

= Use Cases =

* Help AI assistants understand your website
* Improve AI-powered search results for your content
* Provide clean, structured data for machine learning systems
* Create AI-friendly documentation of your site
* Optimize for next-generation AI search engines

= Developer Friendly =

MCPner LLMs.txt Generator includes hooks and filters for developers:

* `mcpner_llmstxt_content` - Modify content before adding to llms.txt
* `mcpner_llmstxt_output` - Customize the complete output
* `mcpner_llmstxt_query_args` - Modify the content query
* `mcpner_llmstxt_before_generate` - Action before generation starts
* `mcpner_llmstxt_after_generate` - Action after generation completes

== Installation ==

= Automatic Installation =

1. Go to **Plugins > Add New** in your WordPress admin
2. Search for "MCPner LLMs.txt Generator"
3. Click **Install Now** and then **Activate**

= Manual Installation =

1. Download the plugin ZIP file
2. Go to **Plugins > Add New > Upload Plugin**
3. Upload the ZIP file and click **Install Now**
4. Activate the plugin

= After Activation =

1. Go to **LLMs.txt** in your admin menu
2. Configure your content selection
3. Click **Generate Now** to create your llms.txt file

== Frequently Asked Questions ==

= What is llms.txt? =

llms.txt is a text file that provides a clean, structured version of your website content optimized for AI and Large Language Model systems. It helps AI understand your site better.

= Where is the llms.txt file located? =

The file is created at your site root: `https://yoursite.com/llms.txt`

= Will this affect my SEO? =

No, the llms.txt file is separate from traditional SEO. It's designed to help AI systems, not search engine crawlers. Your regular SEO remains unaffected.

= Does it work with page builders? =

Yes! The plugin processes content built with Elementor, Divi, Beaver Builder, and other page builders.

= How often should I regenerate the file? =

You can enable auto-regeneration to keep the file always current, or regenerate manually when you update content.

= Can I exclude specific pages? =

Yes! You can exclude any page/post using the per-item toggle in the editor or from the Exclusions tab in settings.

== Screenshots ==

1. Settings tab - Configure general options and generate your llms.txt file with one click
2. Content Selection tab - Advanced mode with tree view for posts, pages, categories, and tags
3. Advanced tab - Auto-regeneration, robots.txt integration, and generation history
4. Generated llms.txt file - Example output showing structured content for AI systems

== Changelog ==

= 1.4.5 =
* Improved MCP test URL normalization: `/sse` and `/message` links now auto-test via `/mcp`
* Added URL extraction from pasted blocks so copied dashboard/config text still validates correctly
* Reduced false 404 failures during MCP validation flow

= 1.4.4 =
* Added dedicated "Save MCP Link" button in Settings > Dublyo MCP section
* Added MCP endpoint validation + live test flow from plugin dashboard
* Added MCP tools discovery using `initialize` + `tools/list` and rendered available tools in dashboard
* Added optional MCP API key field for test requests (not persisted to database)
* Kept MCP link embedded in generated llms.txt metadata/header when provided

= 1.4.3 =
* Added optional "Dublyo MCP Link" settings section
* Added direct link to create MCP at https://dublyo.com/dashboard/mcp
* Stored MCP link in plugin settings and included it in generated metadata output

= 1.4.2 =
* Auto-regeneration now enabled by default and auto-upgraded for legacy installs
* Added content lifecycle triggers (publish/update/trash/delete/restore) to keep llms.txt fresh
* Expanded default coverage to all public post types (including WooCommerce products and custom post types)
* Improved UTF-8 normalization to better preserve Arabic/RTL content readability

= 1.4.1 =
* Removed webhook/API integration draft code
* Kept plugin fully local/offline with no external sync dependency
* Added clear managed-hosting-by-Dublyo messaging in settings UI

= 1.4.0 =
* Removed historical Pro-license dependency paths from plugin runtime
* Added cleanup for legacy Pro options/transients on activation and uninstall
* Updated plugin messaging for single-plugin free feature set

= 1.3.5 =
* Fixed word count for Arabic, Hebrew, and other non-Latin languages (was always showing 1)
* Added Unicode-aware word counting using proper Unicode character class matching
* Improved support for CJK (Chinese, Japanese, Korean) character counting

= 1.3.4 =
* Added information about creating MCP servers for AI assistants
* Improved documentation

= 1.3.3 =
* Fixed Arabic/RTL language support - content was showing as garbled characters
* Added proper UTF-8 multibyte string handling (mb_strlen, mb_substr)
* Added Unicode modifier to regex patterns for international text support
* Improved character encoding detection and conversion

= 1.3.2 =
* Fixed critical bug: Internal page links were using wrong slug causing "Sorry, you are not allowed to access this page" error
* Fixed tab navigation links in admin panel
* Fixed settings link on plugins page
* Added clearer testing instructions in readme for reviewers

= 1.3.1 =
* Fixed text domain to match WordPress.org assigned slug (llms-txt-generator-by-mcpner)
* Fixed Plugin URI to point to valid WordPress.org URL
* Renamed main plugin file to match slug

= 1.3.0 =
* Complete rewrite with improved architecture
* All features now available to all users
* Updated naming convention for WordPress.org compatibility
* Improved code prefixing for plugin uniqueness
* Enhanced robots.txt integration
* Better content extraction
* Bug fixes and performance improvements

= 1.2.3 =
* Updated compatibility for WordPress 6.9
* Minor bug fixes and stability improvements

= 1.2.2 =
* Code quality improvements

= 1.2.1 =
* Fixed WordPress coding standards compliance
* Improved file operations using WP_Filesystem API
* Enhanced input sanitization and validation
* Code quality improvements

= 1.2.0 =
* Rebranded to LLMs.txt Generator
* Updated file output to llms.txt format
* Improved content extraction
* Bug fixes and performance improvements

= 1.1.0 =
* Increased item limit
* Added Advanced Exclusions
* Bug fixes

= 1.0.0 =
* Initial release
* Quick Select content selection
* Posts and Pages support
* Per-item exclusion toggle
* Static file generation
* SEO plugin integration (Yoast, Rank Math, AIOSEO)

== Upgrade Notice ==

= 1.4.5 =
Improves MCP endpoint testing reliability and prevents false 404 failures from pasted input/path variants.

= 1.4.4 =
Adds MCP save/test UX in dashboard with live tools list preview and endpoint validation.

= 1.4.3 =
Adds an optional MCP link field for Dublyo users and includes that link in generated llms metadata when provided.

= 1.4.2 =
Recommended update for auto-refresh reliability, full custom post type/WooCommerce coverage, and improved Arabic/RTL text handling.

= 1.4.1 =
Removed webhook/API integration draft. Plugin remains fully local with static Dublyo hosting promotion text.

= 1.4.0 =
Major consolidation release: all core functionality remains available without any license activation flow.

= 1.3.5 =
Fixed word count for Arabic, Hebrew, CJK, and other non-Latin languages. Word counts will now display correctly.

= 1.3.3 =
Important fix for Arabic, Hebrew, and other RTL/Unicode languages. Content will now display correctly.

= 1.3.2 =
Critical fix for "Sorry, you are not allowed to access this page" error when navigating tabs.

= 1.3.1 =
Fixed text domain and Plugin URI to comply with WordPress.org guidelines.

= 1.3.0 =
Major update with all features now available to all users. Improved architecture and WordPress.org compatibility.
