Repository navigation
[Draft] Add Greenland AI plugin (unreviewed submission) - #1038
cursor[bot] wants to merge 1 commit into
Conversation
Co-authored-by: Danny Jiang <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: API key not wired into MCP
- Declared GREENLANDAI_API_KEY and forwarded it as the X-API-Key header so Configure collects the secret and metered tool calls are authenticated.
Or push these changes by commenting:
@cursor push add71857a1
Preview (add71857a1)
diff --git a/third_party/greenlandai/.cursor-plugin/plugin.json b/third_party/greenlandai/.cursor-plugin/plugin.json
--- a/third_party/greenlandai/.cursor-plugin/plugin.json
+++ b/third_party/greenlandai/.cursor-plugin/plugin.json
@@ -27,5 +27,18 @@
"supply chain",
"mcp"
],
+ "variables": {
+ "type": "object",
+ "properties": {
+ "GREENLANDAI_API_KEY": {
+ "type": "string",
+ "title": "Greenland AI API key",
+ "description": "API key from your Greenland AI account (starts with gai_). Tool calls send it as the X-API-Key header."
+ }
+ },
+ "required": [
+ "GREENLANDAI_API_KEY"
+ ]
+ },
"mcpServers": "./mcp.json"
}
diff --git a/third_party/greenlandai/CHANGELOG.md b/third_party/greenlandai/CHANGELOG.md
--- a/third_party/greenlandai/CHANGELOG.md
+++ b/third_party/greenlandai/CHANGELOG.md
@@ -5,4 +5,4 @@
## 1.0.0 — initial release
- Added the `greenlandai` MCP server pointing at Greenland AI's hosted Streamable HTTP endpoint (`https://mcp.greenlandai.ai/mcp`).
-- Tool calls require a Greenland AI API key sent as the `X-API-Key` header.
+- Auth uses a Greenland AI API key supplied by the user as an `X-API-Key` header (`${GREENLANDAI_API_KEY}`).
diff --git a/third_party/greenlandai/README.md b/third_party/greenlandai/README.md
--- a/third_party/greenlandai/README.md
+++ b/third_party/greenlandai/README.md
@@ -8,7 +8,7 @@
1. Open **Cursor Settings → Plugins**.
2. Search for **Greenland AI**.
-3. Click **Install**.
+3. Click **Install**, then set your Greenland AI API key.
Or run `/add-plugin greenlandai` in chat.
@@ -19,13 +19,16 @@
"mcpServers": {
"greenlandai": {
"type": "http",
- "url": "https://mcp.greenlandai.ai/mcp"
+ "url": "https://mcp.greenlandai.ai/mcp",
+ "headers": {
+ "X-API-Key": "${GREENLANDAI_API_KEY}"
+ }
}
}
}-Connecting and listing tools needs no key. Tool calls need a Greenland AI API key sent as the X-API-Key header; without one, calls return a 401 message explaining how to get a key.
+Tool calls send a Greenland AI API key as the X-API-Key header (${GREENLANDAI_API_KEY}). Set the key in Dashboard → Plugins → Configure. Without one, calls return a 401 message explaining how to get a key.
Before you connect
diff --git a/third_party/greenlandai/mcp.json b/third_party/greenlandai/mcp.json
--- a/third_party/greenlandai/mcp.json
+++ b/third_party/greenlandai/mcp.json
@@ -2,7 +2,10 @@
"mcpServers": {
"greenlandai": {
"type": "http",
-
"url": "https://mcp.greenlandai.ai/mcp"
-
"url": "https://mcp.greenlandai.ai/mcp", -
"headers": { -
"X-API-Key": "${GREENLANDAI_API_KEY}" -
}
}
}
}
</details>
<sub>You can send follow-ups to the cloud agent <a href="https://cursor.com/agents/bc-e6152c89-1e86-4612-ac3c-62638bcd2f4a">here</a>.</sub>
<!-- BUGBOT_AUTOFIX_REVIEW_FOOTNOTE_END -->
<sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 18c0b4ac7aa73157a4284da493c2b2d76a8333e0. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
| "greenlandai": { | ||
| "type": "http", | ||
| "url": "https://mcp.greenlandai.ai/mcp" | ||
| } |
There was a problem hiding this comment.
API key not wired into MCP
High Severity · Logic Bug
The plugin documents that tool calls require an X-API-Key header, but mcp.json is URL-only and plugin.json declares no variables. Installers get no configure prompt, so the keyless MCP bridge never forwards a gai_ key and every metered tool call returns 401.
Additional Locations (2)
Triggered by learned rule: Plugin OAuth scopes must be vendor-advertised
Reviewed by Cursor Bugbot for commit 18c0b4a. Configure here.



Draft. This plugin submission is unreviewed. It was generated from a partner submission form and has not been reviewed by Cursor. Do not merge until it is reviewed.
Adds
third_party/greenlandai/, a remote MCP plugin for Greenland AI.mcp.jsonstores the submitted hosted URLhttps://mcp.greenlandai.ai/mcp(typehttp) under thegreenlandaiserver key..cursor-plugin/plugin.jsonreferences it with"mcpServers": "./mcp.json"..cursor-plugin/marketplace.json..claude-plugin/marketplace.jsonis unchanged.Logo: not committed.
greenlandai.aiis blocked by this agent's network allowlist, so the submitted logo, the homepage, the favicon, and third-party favicon services all failed. NogreenlandaiGitHub organization exists to use as a fallback.plugin.jsonlogois set to the submitted URL,https://greenlandai.ai/brand/greenlandai-mark-1024.png, which the schema allows. A reviewer should download it tothird_party/greenlandai/assets/logo.pngand changelogotoassets/logo.png.Server not probed.
mcp.greenlandai.aiis blocked from this agent too, so the endpoint and its auth (an API key sent as theX-API-Keyheader, per the submission) were not verified.Submission
greenlandaiTesting instructions (as submitted; the text was cut off in the submission and the reviewer key it mentions was not included)
Validation:
node scripts/validate-plugins.mjsreports "All plugins validated successfully."Note
Low Risk
Additive third-party plugin metadata and marketplace listing only; no changes to core repo logic, though the remote MCP endpoint and API-key auth were not verified in this draft.
Overview
Adds a new Greenland AI Cursor integration plugin under
third_party/greenlandai/, wiring agents to Greenland AI’s hosted Streamable HTTP MCP athttps://mcp.greenlandai.ai/mcpviamcp.jsonand a standard.cursor-plugin/plugin.jsonmanifest (docs, changelog, MIT license).The plugin is listed in
.cursor-plugin/marketplace.jsonand the root README integrations table so users can install it from the marketplace or/add-plugin greenlandai. Tool listing works without credentials; tool calls expect a Greenland AI API key in theX-API-Keyheader (documented in README/CHANGELOG). The manifest still pointslogoat a remote URL rather than a committed asset—worth confirming during review.Reviewed by Cursor Bugbot for commit 18c0b4a. Bugbot is set up for automated code reviews on this repo. Configure here.