Linux 软件免费装

Corsen Context

开发者 corsenai
更新时间 2026年9月3日 17:42
捐献地址: 去捐款
PHP版本: 8.0 及以上
WordPress版本: 7.0
版权: MIT
版权网址: 版权信息

标签

ai llms-txt mcp model-context-protocol ai-native

下载

1.2.0 1.2.1 1.3.0 1.3.1 1.4.0 1.5.14

详情介绍:

Corsen Context publishes a bounded overview of selected public WordPress content and provides four core read-only content tools through a JSON-RPC endpoint. Five further extension tools are opt-in and owner-controlled: get_product (live price, stock, images and variants via WooCommerce, plus an agentPurchase policy the agent must respect), get_sections (a page outline plus one bounded section per call), get_structured_data (typed JSON-LD blocks), check_agent_access (reads the result of the owner's latest agent-access self-test) and request_expert_call (a human-only expert intake, annotated readOnlyHint:false and refused server-side for AI callers with error code human_only). 1.5.0 also registers the enabled tools through the experimental WebMCP browser API when the site owner opts in and the browser exposes that API, and through the WordPress Abilities API on WordPress 6.9 or newer. What it does The plugin provides three separate surfaces:
  1. Static Layer — Generates /llms.txt with a structured overview of selected public content. An optional, bounded /llms-full.txt export can be enabled in settings.
  2. Dynamic Layer — Exposes the enabled tools through a Model Context Protocol (MCP) JSON-RPC endpoint at the canonical URL generated by WordPress. The four core tools and four WordPress read extensions are read-only; the optional human-only expert intake is explicitly non-read-only and refuses agent calls server-side. The endpoint targets protocol version 2025-11-25 with JSON responses and no server-sent event stream.
  3. In-Page Layer (opt-in) — Registers the enabled tools through WebMCP document.modelContext, including explicit per-tool annotations. Serving the bridge does not enable WebMCP in every browser: a compatible browser/client and, where applicable, current trial enrollment or a development flag are also required.
Key Features Published Endpoints and Discovery Hints When the corresponding settings are enabled, Corsen Context publishes:
  1. robots.txt — An MCP: line containing the canonical endpoint URL generated by WordPress
  2. llms.txt — When MCP is enabled, the generated file includes its canonical endpoint URL; the separate promotional credit remains optional
  3. HTML head<link rel="mcp"> link element added automatically
  4. Direct URL/llms.txt remains available to clients that know the convention
These are project discovery hints, not universally consumed standards. They do not guarantee that a search engine or client will discover or use the endpoint. Requirements WebMCP additionally needs a browser and agent/client that implement the evolving API. Chrome's development flag and public origin-trial path can change; follow the current browser setup guide. Part of a Bigger Ecosystem Corsen Context is an open-source project by Corsen AI. The project also provides TypeScript packages for Node.js, Next.js, and Astro, plus a reference Express server. WordPress uses this dedicated PHP plugin.

安装:

From WordPress.org (published stable channel)
  1. Go to Plugins > Add New in your WordPress admin
  2. Search for "Corsen Context"
  3. Click "Install Now" then "Activate"
  4. Visit Settings > Corsen Context and review the exposed post types, paths, and surfaces.
Check the version displayed by WordPress.org before installation. A stable version older than 1.5.14 does not contain the complete current Control Center, extension-tool hardening, and Abilities API schemas documented here. Manual release installation
  1. Obtain the GitHub release asset for version 1.5.16, or build a ZIP from packages/wordpress-plugin/corsen-context in the public repository at tag v1.5.16.
  2. The ZIP must contain one top-level corsen-context folder with corsen-context.php, includes/, uninstall.php, and readme.txt; do not upload the monorepo ZIP.
  3. Go to Plugins > Add New > Upload Plugin, upload that plugin ZIP, and activate it.
  4. Confirm version 1.5.16 on the Plugins screen, then review Settings > Corsen Context before enabling WebMCP.
After Activation With the default settings, activation publishes: /llms-full.txt is not enabled by default. WebMCP is also opt-in and requires a compatible browser/client in addition to the WordPress setting. Important: Do not construct the MCP endpoint by appending /wp-json/. WordPress commonly returns https://yoursite.com/wp-json/corsen-context/v1/mcp, but Plain permalinks can return https://yoursite.com/?rest_route=/corsen-context/v1/mcp, and a site can filter the REST prefix. Use the URL displayed by the plugin or published in robots.txt, the HTML <link rel="mcp">, or the generated /llms.txt when MCP is enabled. If the separate /llms.txt path is unavailable, review the site's rewrite and permalink configuration.

升级注意事项:

1.5.16 The agent conduct policy now spells out the allowed purchase path (cart, checkout, account creation) next to the human-only rules, so a well-behaved agent completes what the owner permits and hands the rest to a person. 1.5.15 Closes the last author-enumeration leak: blocked author archives no longer print the author's nicename in the 404 page title or Open Graph tags. 1.5.14 Hardens JSON-LD retrieval, unifies owner visibility vetoes across every reader, fixes section-id collisions, completes private-data cleanup, and aligns WordPress Abilities output schemas with actual results. 1.5.9
  • Fix: the MCP route's Allow header now advertises POST only on its 405 GET answer. WordPress Core rebuilt it from the route's registered methods (POST, GET, OPTIONS), contradicting the MCP transport spec, this plugin's own documentation, and the nine other reference stacks. Now covered by an integration test.
1.5.8 Adds the Control Center, the WordPress Abilities API surface, two opt-in extension tools (product data, expert requests) and a bounded audit log. Everything new defaults to OFF; the four core read-only tools and the public contract are unchanged. 1.4.1 Removes the experimental form write surface and strengthens strict MCP/WebMCP contract validation. Existing legacy form shortcodes render nothing. 1.2.1 Security and reliability update. /llms-full.txt is now disabled by default; review and enable it explicitly if the bounded full-content export is desired. 1.1.0 Security update: fixes SSRF fail-open, PHP crash on large content, rate limiter bugs. Adds WP-Cron cleanup and max_pages admin setting. Recommended for all users. 1.0.0 Initial release with MCP-style JSON-RPC and llms.txt publishing.

常见问题:

What is MCP?

Model Context Protocol is an open protocol for communication between AI applications and external systems. Corsen Context targets the 2025-11-25 protocol version for its read-only JSON-RPC endpoint.

What is llms.txt?

A proposed convention where websites place a /llms.txt file containing a structured Markdown overview. Support varies by client and search engine, so it should be treated as an additional publishing surface rather than an indexing guarantee.

Is my content safe?

The plugin limits output to selected public post types and rejects draft, pending, private, password-protected, trashed, or excluded content. Site owners can also veto individual posts with the corsen_context_can_expose_post filter. As with any public export, review the selected post types and exclusions before enabling it on a site with membership or conditional-visibility plugins.

Does this slow down my site?

When MCP is enabled, normal pages receive a small discovery link. When WebMCP is also enabled, the plugin emits an origin-trial meta tag if configured and an inline registration script. Generated metadata may use bounded WordPress transients for anonymous, cookie-free requests. Rendered page content is not placed in the shared MCP cache, and /llms-full.txt uses item, byte, and generation-lock limits. Measure representative pages on your own hosting rather than assuming zero impact.

Does it work with page builders?

By default, Corsen Context reads stored public content without executing the_content, dynamic blocks, or shortcodes. This avoids accidentally exporting personalized output. Site owners can opt into full rendering with the corsen_context_render_mode filter; full-rendered output is never stored in the shared content cache. Compatibility depends on the page builder and should be tested on the site.

Can I control which content is exposed?

Yes. In Settings > Corsen Context you can:

  • Choose which post types to include (pages, posts, products, custom types)
  • Exclude specific URL paths
  • Choose which tools MCP, WebMCP and the Abilities API advertise and allow (extension tools stay off until you enable them)
  • Disable MCP, llms.txt, or the entire plugin

Does it work with WooCommerce?

The standard public product post type can be selected. The plugin exports its stored public content under the same rendering and exclusion rules as other post types. Themes, product add-ons, memberships, prices, variations, and dynamic shortcodes can change what a visitor sees, so test the required WooCommerce fields and visibility rules on the target site before claiming compatibility. When you enable it, the get_product extension tool additionally serves live price, sale, stock, image, and (for variable products) variant data through WooCommerce APIs; it requires WooCommerce to be active and the product post type to be selected.

How do I protect the MCP endpoint?

You can set an API key by defining CORSEN_CONTEXT_API_KEY in your wp-config.php: define('CORSEN_CONTEXT_API_KEY', 'your-secret-key-here'); Server-side requests must then include X-MCP-Key: your-secret-key-here or Authorization: Bearer your-secret-key-here. The supplied WebMCP bridge intentionally sends no key, cookies, or visitor credentials. Do not embed the key in page source. Use either a public, read-only, rate-limited endpoint for WebMCP or a key-protected endpoint for configured server-side MCP clients with WebMCP disabled.

How do I enable WebMCP in a browser?

Enable WebMCP in Settings > Corsen Context, then use a browser and agent/client that implement the experimental API. Serving the registration script alone is not enough. For local Chrome testing, follow the current documented flag. For a public trial, enroll the exact HTTPS origin and use its current, unexpired token. See the browser setup and verification guide. An origin-trial token is delivered to browsers and is not an MCP credential. Successful registration also does not prove the endpoint or content policy: execute search_site, pass one result to get_page_content, and inspect the grounded answer.

Can I remove the credit line?

Yes. Uncheck "Show Credit" in Settings > Corsen Context. However, the credit helps grow the open-source ecosystem and we appreciate keeping it enabled.

更新日志:

1.5.16 - 2026-09-03 1.5.15 - 2026-09-03 1.5.14 - 2026-09-02 1.5.13 - 2026-09-01 1.5.12 - 2026-09-01 1.5.11 - 2026-09-01 1.5.10 - 2026-09-01 1.5.9 - 2026-09-01 1.5.8 - 2026-09-01 1.5.7 - 2026-09-01 1.5.6 - 2026-09-01 1.5.5 - 2026-09-01 1.5.4 - 2026-09-01 1.5.3 - 2026-09-01 1.5.2 - 2026-09-01 1.5.1 - 2026-09-01 1.5.0 - 2026-09-01 1.4.1 - 2026-08-30 1.4.0 - not released - 2026-08-30 1.3.1 - 2026-08-30 1.3.0 - 2026-08-30 1.2.1 - 2026-07-21 1.2.0 - 2026-07-13 1.1.0 - 2026-04-12 1.0.0 - 2026-04-08