Skip to content

feat(cursor): bundle the local Glean MCP server - #16

Merged
eshwar-sundar-glean merged 1 commit into
mainfrom
eshwar/cursor-vnext-plugin
Aug 19, 2026
Merged

feat(cursor): bundle the local Glean MCP server#16
eshwar-sundar-glean merged 1 commit into
mainfrom
eshwar/cursor-vnext-plugin

Conversation

@eshwar-sundar-glean

Copy link
Copy Markdown
Contributor

Summary

Emit the folded vnext/local Glean MCP server in the Cursor glean plugin.

Cursor previously excluded the shared mcp/ component, so it only received the portable skills, agents, and rules and required a separately configured remote Glean MCP server. This change enables the same local MCP adapter already shipped by the Claude Code and Codex glean plugins.

Changes

  • Remove mcp from Cursor's exclude list; continue excluding hooks and scripts.
  • Cursor now emits:
    • .mcp.json
    • mcp/start.mjs
    • mcp/dist/index.js
    • mcp/package.json
  • Update Cursor setup documentation to use the bundled local Glean MCP server and harness-driven setup.
  • Update repository documentation to reflect that Claude, Cursor, and Codex bundle the local adapter.

The output remains the existing glean plugin; no separate glean-vnext plugin is introduced.

Verification

  • npm test — all target builds and validation passed
  • MCP typecheck passed
  • MCP tests: 195 passed
  • No-shell guard passed
  • Cursor manifest contains mcpServers: "./.mcp.json"
  • Cursor MCP artifacts verified
  • git diff --check passed

Comment thread pluginpack.config.ts
source: "shared/glean",
overrides: "overrides/cursor/glean",
exclude: ["mcp", "hooks", "scripts"],
exclude: ["hooks", "scripts"],

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue: The Cursor target now includes the shared MCP configuration, but that configuration invokes ${CLAUDE_PLUGIN_ROOT}/mcp/start.mjs, which is Claude-specific and is not a valid Cursor plugin path. The bundled MCP server therefore will not start in Cursor.

Suggested fix: Add overrides/cursor/glean/mcp/config.json using a Cursor-compatible entry such as command: "node", args: ["./mcp/start.mjs"], and cwd: ".", or otherwise provide a resolvable Cursor-specific MCP entrypoint.

🔧 Tag @ glean-for-engineering to fix or click here to fix in Glean

💬 Help us improve! Was this comment helpful? React with 👍 or 👎

@eshwar-sundar-glean
eshwar-sundar-glean merged commit 5696bd8 into main Aug 19, 2026
1 check passed
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