Skip to content

feat(third_party): add the Laravel Cloud plugin - #1372

Open
rshah2020 wants to merge 1 commit into
mainfrom
cursor/add-laravel-cloud-plugin-ece1
Open

rshah2020 wants to merge 1 commit into
mainfrom
cursor/add-laravel-cloud-plugin-ece1

Conversation

@rshah2020

Copy link
Copy Markdown
Contributor

Summary

Adds third_party/laravel-cloud, a plugin that wraps Laravel Cloud's official remote MCP server at https://cloud.laravel.com/mcp (Streamable HTTP, OAuth 2.0). Once connected, agents can create applications and environments from a Git repository, trigger deployments, add databases, caches, object storage, and WebSocket servers, set environment variables, secrets, and domains, run commands such as php artisan migrate, and read deployment logs, exceptions, metrics, and usage in the organizations the user authorizes. Laravel Cloud also ships agent skills (get-skill) for common Cloud tasks.

Files:

  • third_party/laravel-cloud/.cursor-plugin/plugin.json
  • third_party/laravel-cloud/mcp.json (type: http, https://cloud.laravel.com/mcp)
  • third_party/laravel-cloud/README.md, CHANGELOG.md, LICENSE (MIT)
  • third_party/laravel-cloud/assets/logo.png (256×256 PNG, Laravel Cloud's official mark rendered from the icon published on laravel.com, matching the apple-touch-icon layout)
  • .cursor-plugin/marketplace.json entry and root README row, tail-appended after folk

Descriptions are based on Laravel Cloud's MCP server docs (https://laravel.com/cloud/docs/mcp-server); no tools or features were invented.

Validation

  • node scripts/validate-plugins.mjs → All plugins validated successfully.
  • node scripts/generate-pstack-harness-trees.mjs --check → harness/pstack is up to date.

Smoke test (from a Cursor cloud VM, 2026-11-28)

The server requires authentication; the unauthenticated handshake behaves as an MCP OAuth client expects.

  • POST /mcp initialize → HTTP 401, body {"message":"Unauthenticated."}.
  • The challenge header is present but arrives as x-amzn-remapped-www-authenticate: Bearer realm="mcp", resource_metadata="https://cloud.laravel.com/.well-known/oauth-protected-resource/mcp" — Laravel Cloud's AWS API Gateway renames WWW-Authenticate, so clients that only read WWW-Authenticate must fall back to well-known discovery. Both well-known PRM locations exist, so the fallback works.
  • Protected resource metadata:
    • /.well-known/oauth-protected-resource → 200, resource: https://cloud.laravel.com, authorization_servers: ["https://cloud.laravel.com"], scopes_supported: ["mcp:use"]
    • /.well-known/oauth-protected-resource/mcp → 200, resource: https://cloud.laravel.com/mcp, same AS and scope
  • Authorization server metadata (/.well-known/oauth-authorization-server, also under /mcp) → 200: issuer https://cloud.laravel.com, authorization_endpoint /oauth/authorize, token_endpoint /oauth/token, registration_endpoint /oauth/register, response_types ["code"], grant_types ["authorization_code","refresh_token"], code_challenge_methods_supported ["S256"] (PKCE), token_endpoint_auth_methods ["none","client_secret_basic","client_secret_post"]. /.well-known/openid-configuration is not served (302 to sign-in).
  • Dynamic Client Registration: POST /oauth/register with redirect_uris: ["cursor://anysphere.cursor-mcp/oauth/callback"], token_endpoint_auth_method: none → HTTP 201, client_id issued, redirect URI echoed back unchanged. A second registration with the cursor:// URI plus http://localhost:3000/oauth/callback and http://127.0.0.1:3000/oauth/callback was also accepted (201). Registration is rate-limited to 10/min.
  • GET /oauth/authorize with the registered client, the cursor:// redirect, scope mcp:use, and an S256 challenge → 302 to https://cloud.laravel.com/login (the expected sign-in step). No sign-in was completed.

Authenticated tool execution (tools/list, tool calls, tool count, and read/write annotations) was not tested: that requires a Laravel Cloud user account and completing the browser sign-in, which was intentionally skipped. The README's capability table comes from Laravel Cloud's published docs, not from a live tools/list.

Skipped / notes

  • No "placement": "server" on the MCP entry; the spec asked for the plain type: http + URL shape, and DCR accepts the cursor:// redirect, so the default placement is fine. Add it if the Grok Bot hosted path is wanted.
  • Origin also carries an older, unrelated branch cursor/add-laravel-cloud-plugin-ea3b (commit 2be3919b, no PR) that predates this batch; this PR does not build on it.

Co-authored-by: Rohan Shah <rshah2020@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants