Title: Mescio for Agents
Author: Mescio
Published: <strong>Maret 6, 2026</strong>
Last modified: April 20, 2026

---

Nggoléki Plugin

![](https://ps.w.org/mescio-for-agents/assets/banner-772x250.png?rev=3476362)

![](https://ps.w.org/mescio-for-agents/assets/icon-256x256.png?rev=3476362)

# Mescio for Agents

 Dening [Mescio](https://profiles.wordpress.org/vinsmach/)

[Ngundhuh](https://downloads.wordpress.org/plugin/mescio-for-agents.1.6.9.zip)

 * [Detil](https://jv.wordpress.org/plugins/mescio-for-agents/#description)
 * [Mācā ulang](https://jv.wordpress.org/plugins/mescio-for-agents/#reviews)
 *  [Pemasangan](https://jv.wordpress.org/plugins/mescio-for-agents/#installation)
 * [Pangembangan](https://jv.wordpress.org/plugins/mescio-for-agents/#developers)

 [Sokong](https://wordpress.org/support/plugin/mescio-for-agents/)

## Katrangan

**Mescio for Agents** makes your WordPress site AI-ready by silently serving posts,
pages and WooCommerce products as clean, structured Markdown to any AI agent or 
LLM pipeline that requests it — using the standard HTTP `Accept: text/markdown` 
content negotiation header.

Human visitors using a browser are **completely unaffected**. Mescio for Agents 
only activates when an AI agent or crawler explicitly asks for Markdown.

#### Why Markdown?

Feeding raw HTML to an AI is expensive and noisy. A heading like `## About Us` costs
~3 tokens in Markdown vs 12–15 tokens as HTML — before accounting for `<div>` wrappers,
navigation bars and script tags that carry zero semantic value. This blog post you
are reading takes 16,180 tokens in HTML and 3,150 tokens in Markdown. That is an
80% reduction.

Markdown has become the _lingua franca_ for AI systems. Mescio for Agents lets your
site speak it natively, at zero cost to your human visitors.

#### How it works

When an HTTP client sends a request with `Accept: text/markdown`, Mescio for Agents
intercepts the WordPress request lifecycle before any template is rendered, converts
the post content to clean Markdown, and returns it with the correct `Content-Type:
text/markdown` header.

    ```
    curl https://yoursite.com/your-post/ \
      -H "Accept: text/markdown"
    ```

#### Features

 * **Zero configuration** — works out of the box on any singular post, page or custom
   post type
 * **`/llms.txt` endpoint** — auto-generated index of all your content in the [llmstxt.org](https://llmstxt.org)
   standard format, so AI agents can discover what’s on your site
 * **`/llms-full.txt` endpoint** — full site content in a single Markdown file, 
   ready for RAG pipelines
 * **WooCommerce support** — product pages include price, SKU, stock status, rating,
   attributes and gallery; products are grouped by category in `llms.txt`
 * **YAML front matter** — every document includes structured metadata (title, description,
   URL, date, categories, tags, featured image)
 * **Multilingual** — detects language via WPML, Polylang, TranslatePress or WordPress
   locale; emits `Content-Language` and `Link: rel=alternate` headers
 * **REST API endpoint** — `/wp-json/mescio-for-agents/v1/markdown?id=<post_id>`
   or `?url=<permalink>`
 * **Page builder cleanup** — aggressively strips Elementor, Divi, WPBakery and 
   Beaver Builder layout noise
 * **Token count header** — `X-Markdown-Tokens` tells AI pipelines how large the
   document is before processing
 * **Content Signals** — emits `Content-Signal: ai-train=yes, search=yes, ai-input
   =yes`
 * **Correct HTTP caching** — `Vary: Accept` ensures CDNs cache HTML and Markdown
   versions separately

#### Response headers

 * `Content-Type: text/markdown; charset=utf-8`
 * `Content-Language: it` (or detected language)
 * `Vary: Accept`
 * `X-Markdown-Tokens: 725`
 * `Content-Signal: ai-train=yes, search=yes, ai-input=yes`
 * `Link: <url>; rel="alternate"; hreflang="en"` (when translations available)

#### Multilingual plugin support

 * **WPML** — reads language and available translations automatically
 * **Polylang** — reads language and links to translated post IDs
 * **TranslatePress** — reads `trp_language` post meta
 * **Manual** — configure primary language and additional languages in Settings  
   Mescio for Agents

#### REST API

    ```
    GET /wp-json/mescio-for-agents/v1/markdown?id=42
    GET /wp-json/mescio-for-agents/v1/markdown?url=https://yoursite.com/my-page/
    ```

#### Developer hooks

**Filter: `mescio_enabled_post_types`** — add or remove post types dynamically.

**Filter: `mescio_pre_convert_content`** — modify the HTML before conversion to 
Markdown.

**Filter: `mescio_post_convert_content`** — modify the Markdown after conversion.

#### Privacy

This plugin does not collect, store or transmit any personal data. It does not set
cookies. It does not make external HTTP requests.

## Pemasangan

 1. Upload the `mescio-for-agents` folder to `/wp-content/plugins/`, or install directly
    from the WordPress plugin directory.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Optionally configure it at **Settings  Mescio for Agents**.
 4. Test it: `curl https://yoursite.com/any-post/ -H "Accept: text/markdown"`

No API keys, no external services, no additional dependencies required.

## FAQ

### Will this affect my site’s SEO or how Google crawls it?

No. The plugin only responds with Markdown when an HTTP client sends `Accept: text/
markdown`. Standard browsers and Googlebot never send this header, so they receive
the normal HTML page. The Markdown responses include `X-Robots-Tag: noindex` to 
be safe.

### Does it work with the Gutenberg block editor?

Yes. The plugin applies WordPress’s `the_content` filter, which fully processes 
Gutenberg blocks into HTML before conversion.

### Does it work with Elementor, Divi or other page builders?

Yes. The HTML cleaner aggressively strips layout wrapper elements, data attributes
and icon-only links produced by visual page builders, resulting in clean semantic
Markdown.

### Does it work without WooCommerce?

Yes. WooCommerce is completely optional. Without it, the plugin works normally for
posts and pages.

### Does it require WPML or Polylang?

No. Both are optional. Without them, Mescio for Agents detects the site language
from the WordPress locale setting. You can also configure languages manually in 
Settings  Mescio for Agents.

### Can I add custom post types?

Yes, either from the settings page or via the `mescio_enabled_post_types` filter:

    ```
    add_filter( 'mescio_enabled_post_types', function( $types ) {
        $types[] = 'my_cpt';
        return $types;
    });
    ```

### Is there a “powered by” link added to my site?

No. The plugin adds no frontend links, scripts or styles to your site.

## Mācā ulang

![](https://secure.gravatar.com/avatar/ee421d3fd85b44d745307f4aba5cdfac6c8b05237fbfe7d443b9827d164ba234?
s=60&d=retro&r=g)

### 󠀁[plug and play AI discoverability](https://wordpress.org/support/topic/plug-and-play-ai-discoverability/)󠁿

 [Eduard Doloc](https://profiles.wordpress.org/rwky/) Mei 5, 2026

simple, plug and play, for any website; implemented on tens of sites and validated
the setup with cloudflare’s free isitagentready.com check for content, everything
is in the green.

 [ Read all 1 review ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/)

## Contributors & Developers

“Mescio for Agents” is open source software. The following people have contributed
to this plugin.

Kontributor

 *   [ Mescio ](https://profiles.wordpress.org/vinsmach/)

[Translate “Mescio for Agents” into your language.](https://translate.wordpress.org/projects/wp-plugins/mescio-for-agents)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mescio-for-agents/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mescio-for-agents/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mescio-for-agents/)
by [RSS](https://plugins.trac.wordpress.org/log/mescio-for-agents/?limit=100&mode=stop_on_copy&format=rss).

## Caathetan Owahan

#### 1.6.9

 * Improved: Link headers (RFC 8288) now use `wp_headers` filter instead of `send_headers`
   action — more reliable with caching plugins and CDN/reverse-proxy setups
 * Added: `api-catalog` Link header pointing to `/.well-known/api-catalog` (RFC 
   9727)
 * Added: `service-doc` Link header alongside `service-desc` — covers more agent/
   checker implementations
 * Fixed: OpenAPI `service-desc` now uses correct media type `application/vnd.oai.
   openapi+json` instead of generic `application/json`

#### 1.6.8

 * New: Link headers (RFC 8288) for agent discovery — emitted on homepage, Markdown
   responses, REST `/markdown` endpoint, and `llms.txt` / `llms-full.txt`
 * Links advertise: `llms.txt` (`rel="describedby"`), `llms-full.txt` (`rel="describedby"`),
   OpenAPI schema (`rel="service-desc"`), `agents.txt` (`rel="agent-policy"`)
 * Markdown and REST responses also include a self-referencing `rel="canonical"`
   Link header
 * All links filterable via `mescio_link_headers` filter; feature disableable via`
   mescio_link_headers_enabled` filter

#### 1.6.7

 * Fix: resolved option group mismatch in Content Signals introduced in 1.6.5 — 
   settings now save and load correctly across all WordPress versions
 * Hardened Content Signals sanitization to strictly allow only ‘yes’ or ‘no’ values
   per signal key

#### 1.6.6

 * Fix: Content Signals settings were not saved correctly — `register_setting()`
   used wrong option group (`mescio_for_agents` instead of `mescio_settings`), causing
   robots.txt and HTTP headers to always emit default values regardless of admin
   configuration

#### 1.6.5

 * Security: added two-layer burst protection to rate limiter — IPs sending more
   than 20 req/5s are auto-blocked for 10 minutes; blocked IPs rejected with a single
   transient read before any WordPress processing
 * All burst thresholds filterable: `mescio_burst_limit`, `mescio_burst_window`,`
   mescio_block_duration`
 * REST 429 responses now include `Retry-After`, `X-RateLimit-Remaining`, `X-RateLimit-
   Reset` headers
 * New: Content Signals support (draft-romm-aipref-contentsignals) — site owners
   can now declare AI usage preferences
 * Content Signals published in `robots.txt` via `Content-Signal:` directive and
   in all Markdown/REST response headers
 * Default values: `ai-train=no, search=yes, ai-input=yes` (conservative — protects
   owners who install without reading docs)
 * Configurable from Settings  Mescio for Agents with live preview
 * Filterable by developers via `mescio_content_signals` filter
 * Replaced hardcoded `Content-Signal: ai-train=yes` header with dynamic value from
   settings

#### 1.6.3

 * Fix: shortcode builder tags (WPBakery, WoodMart, ecc.) rimossi anche dagli excerpt
   nel llms.txt index
 * Fix: llms.txt ora serve titoli, excerpt e permalink nella lingua corretta su 
   siti multilingua (WPML/Polylang)
 * Fix: llms-full.txt ora serve il contenuto completo dei post nella lingua corretta(
   WPML/Polylang)

#### 1.6.1

 * Fixed 404 on multilingual sites using WPML or Polylang: `llms.txt` and `llms-
   full.txt` now resolve correctly under language-prefixed URLs (e.g. `/it/llms.
   txt`, `/en/llms-full.txt`)
 * Added `parse_request` early intercept (priority 1) as fallback for language plugins
   that rewrite REQUEST_URI before WordPress rewrite rules run
 * Added rewrite rule variant matching `/xx/llms.txt` and `/xx-XX/llms.txt` patterns

#### 1.6.0

 * Added rate limiting: per-IP request throttling on all endpoints via WordPress
   transients
 * `llms-full.txt` limited to 10 req/60s, REST search to 20, other REST to 30, default
   to 60
 * Returns 429 Too Many Requests with `Retry-After` header when limit exceeded
 * Respects Cloudflare, nginx and standard `X-Forwarded-For` proxy headers
 * Added sensitive meta key filter: fields containing `password`, `token`, `email`,`
   phone`, `iban` and similar patterns are never exposed in Markdown front matter
 * Both rate limiting and sensitive key filter are filterable by developers

#### 1.5.0

 * Added automatic custom fields support in Markdown front matter
 * If ACF is active, uses `get_fields()` with label-keyed, typed values; nested 
   groups and repeaters flattened to dot notation (e.g. `group.field`)
 * Without ACF, exposes plain post meta — skipping internal keys (`_` prefix), serialized
   data, JSON blobs and known plugin internals
 * Added `mescio_custom_meta` filter for developer overrides

#### 1.4.0

 * Added `/agents.txt` endpoint following IETF draft-srijal-agents-policy-00
 * SHA-256 hash computed automatically from directive content
 * Configurable directives (path, ALLOW/DISALLOW, optional params) via admin settings
 * Live preview of generated file with hash in settings page
 * Default directives: `/ ALLOW`, `/wp-admin DISALLOW`, `/wp-login.php DISALLOW`
 * Added `/agents.txt` link in Quick Links table

#### 1.3.0

 * Refactored monolith into modular architecture (6 separate class files)
 * Added REST endpoint `/wp-json/mescio-for-agents/v1/context` — site metadata +
   llms.txt in JSON for MCP servers
 * Added REST endpoint `/wp-json/mescio-for-agents/v1/search` — full-text search
   with Markdown output
 * Added REST endpoint `/wp-json/mescio-for-agents/v1/page` — page by slug or ID
 * Added REST endpoint `/wp-json/mescio-for-agents/v1/openapi` — OpenAPI 3.1 schema
 * Added `llms-full.txt` pagination via `?limit=N&offset=N` with `X-LLMS-Next` header
 * Improved caching: real `Last-Modified` from content timestamp, `ETag` from body
   hash, full 304 support
 * Fixed excess blank lines in Markdown output from Elementor and other page builders
 * Expanded admin API Examples panel with 8 tabs and copy buttons

#### 1.2.0

 * Added `/llms.txt` endpoint — auto-generated site index in the llmstxt.org standard
   format
 * Added `/llms-full.txt` endpoint — full site content in a single Markdown file
   for RAG pipelines
 * Products in `llms.txt` grouped by WooCommerce category with price and stock status
 * Added `mescio_llms_txt_posts_limit`, `mescio_llms_txt_products_limit`, `mescio_llms_full_txt_limit`
   filters
 * Added flush rewrite rules on plugin activation/deactivation
 * Added `/llms.txt` and `/llms-full.txt` clickable links in the settings test panel

#### 1.1.0

 * Added multilingual support: WPML, Polylang, TranslatePress and manual configuration
 * Added `Content-Language` and `Link: rel=alternate` response headers
 * Improved HTML to Markdown converter with aggressive page builder noise removal
 * Added UTF-8 and mojibake encoding auto-correction
 * Improved whitespace normalisation
 * Added 27-language selector in admin with flags and native names
 * Added plugin detection badges in settings page
 * Added test panel with ready-to-use curl and Python examples

#### 1.0.0

 * Initial release
 * Content negotiation via `Accept: text/markdown` header
 * YAML front matter with post metadata
 * WooCommerce product support
 * REST API endpoint `/wp-json/mescio-for-agents/v1/markdown`
 * `X-Markdown-Tokens` header with token count estimate
 * `Content-Signal` header
 * `Vary: Accept` for correct HTTP caching

## Meta

 *  Version **1.6.9**
 *  Last updated **3 pekan sing kepungkur**
 *  Active installations **100+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 8.0 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/mescio-for-agents/)
 * Tags
 * [Agents](https://jv.wordpress.org/plugins/tags/agents/)[AI](https://jv.wordpress.org/plugins/tags/ai/)
   [LLM](https://jv.wordpress.org/plugins/tags/llm/)[markdown](https://jv.wordpress.org/plugins/tags/markdown/)
   [rest-api](https://jv.wordpress.org/plugins/tags/rest-api/)
 *  [Nonton lanjutan](https://jv.wordpress.org/plugins/mescio-for-agents/advanced/)

## Peringkat

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/mescio-for-agents/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mescio-for-agents/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mescio-for-agents/reviews/)

## Kontributor

 *   [ Mescio ](https://profiles.wordpress.org/vinsmach/)

## Sokong

Issues resolved in last two months:

     1 out of 1

 [View support forum](https://wordpress.org/support/plugin/mescio-for-agents/)