Linux 软件免费装
Banner图

AI Provider for Cursor

开发者 rafacarvalhido
更新时间 2026年8月4日 09:14
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

cursor ai connector artificial-intelligence cloud-agents

下载

0.1.7

详情介绍:

This plugin connects WordPress to Cursor Cloud Agents so the WordPress AI Client can generate text through the cursor provider. This is an unofficial, third-party connector. It is not affiliated with, endorsed by, or sponsored by Cursor or Anysphere. "Cursor" is a trademark of Anysphere, Inc. Features: Requirements:

安装:

  1. Upload the plugin files to /wp-content/plugins/ai-provider-for-cursor/
  2. Activate the plugin through the Plugins screen in WordPress
  3. Configure the plugin (see Configuration below)

升级注意事项:

0.1.8 - 2026-08-03 Settings page now invites reviews and links to the WordPress.org support forum. 0.1.7 - 2026-07-30 API key is now configured only via Settings → Connectors (or CURSOR_API_KEY). Plugin settings keep poll/model/archive options. 0.1.6 - 2026-07-28 Plugin Check compliance fixes and main file rename to ai-provider-for-cursor.php. Reactivate the plugin if WordPress deactivated it after the rename. 0.1.5 - 2026-07-28 Readme and compliance updates for WordPress.org submission. No functional changes to text generation. 0.1.4 - 2026-07-28 Fixes empty summaries when Cursor create returns FINISHED without result text. 0.1.3 - 2026-07-28 Fixes Cloud Agent requests timing out at the default 30s WordPress AI Client HTTP limit. 0.1.2 - 2026-07-27 Fixes summarization and other AI features failing text-generation support checks with Cursor. 0.1.1 - 2026-07-27 Fixes WordPress AI plugin credential detection for the Cursor connector. 0.1.0 - 2026-07-27 Initial release.

常见问题:

Where do I enter the API key?

On Settings → Connectors. For production, prefer defining CURSOR_API_KEY in wp-config.php (see Configuration). Cursor-specific poll and model options are on Settings → AI Provider for Cursor.

How do I store the API key in wp-config.php?

Open wp-config.php in the root of your WordPress install and add this line above /* That's all, stop editing! */: define( 'CURSOR_API_KEY', 'your-cursor-api-key-here' ); Replace the placeholder with your real Cursor API key. Reload Settings → Connectors — WordPress should detect the constant as the key source.

What data does this plugin send to Cursor?

When the Cursor provider is used, WordPress sends your API key and the prompt text for that request (including system instructions and any content included by the calling feature) to https://api.cursor.com. See External services for endpoints, timing, and links to Cursor's terms and privacy policy.

Does this require WordPress 7.0?

Yes. The WordPress AI Client and Connectors API shipped in WordPress 7.0.

Why can requests take a long time?

Cursor Cloud Agents run asynchronously. This plugin creates an agent, polls the run until it finishes, then returns the final result text. Increase the poll timeout if your host allows longer PHP execution times.

What is Poll timeout?

The maximum number of seconds WordPress will wait for a Cursor Cloud Agent run to finish. If Cursor has not finished by then, the request fails with a timeout error. Default is 120 seconds. Increase it if answers often fail with timeout; lower it only if you want failures to surface faster.

What is Poll interval?

How many seconds to wait between each status check while a Cloud Agent is still running. For example, with interval 2, WordPress asks Cursor roughly every 2 seconds whether the run is finished. The default (2) is a good balance for most sites: lower values check more often (slightly more API traffic); higher values check less often (slightly slower to notice completion). Most users can leave this at the default.

What does Archive agent after run do?

Each text generation creates a Cloud Agent on Cursor's side. When this option is enabled (the default), the plugin asks Cursor to archive that agent after a successful reply, so finished agents do not pile up in your Cursor dashboard. Turn it off only if you want to keep those agents visible in Cursor for inspection or follow-up. Archiving is best-effort: if the archive call fails, your generated text is still returned.

Recommended defaults for these options?

For most sites: poll timeout 120, poll interval 2, and keep Archive agent after run enabled. Change them only if you hit timeouts, want fewer status checks, or need to keep agents listed in Cursor.

How do I use Cursor from PHP?

After configuring the API key on Settings → Connectors (or via CURSOR_API_KEY): AiClient::prompt( 'Write a short product description.' )->usingProvider( 'cursor' )->generateTextResult(); You can also select a model with usingModel( 'cursor-grok-4.5-high-fast' ) (exact IDs come from your Cursor account via GET /v1/models).

Is this an official Cursor plugin?

No. It is a community / third-party WordPress plugin that uses Cursor's public Cloud Agents API. It is not affiliated with, endorsed by, or sponsored by Cursor or Anysphere.

Will every AI feature in WordPress use Cursor automatically?

No. Only features and code that explicitly use the WordPress AI Client with usingProvider( 'cursor' ) (or select Cursor where supported) will call Cursor. Other plugins that hard-code their own provider list may ignore the Cursor provider even when it shows as connected under Settings → Connectors.

更新日志:

0.1.8 - 2026-08-03 0.1.7 - 2026-07-30 0.1.6 - 2026-07-28 0.1.5 - 2026-07-28 0.1.4 - 2026-07-28 0.1.3 - 2026-07-28 0.1.2 - 2026-07-27 0.1.1 - 2026-07-27 0.1.0 - 2026-07-27