Skip to content

Add Cursor MCP integration with context, hotspots, duplicates, and dr…#2

Merged
sakrut merged 2 commits intomainfrom
feature/cursor-tools
Mar 3, 2026
Merged

Add Cursor MCP integration with context, hotspots, duplicates, and dr…#2
sakrut merged 2 commits intomainfrom
feature/cursor-tools

Conversation

@sakrut
Copy link
Copy Markdown
Owner

@sakrut sakrut commented Mar 3, 2026

…ift tools

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b3ef4429cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +106 to +107
if (!servers.ContainsKey("ai-code-graph"))
{
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor --db when ai-code-graph server already exists

When .cursor/mcp.json already contains an ai-code-graph entry, the command skips writing anything, so setup-cursor --db <path> cannot update the MCP server to the requested database path. This makes the --db option ineffective for reconfiguration (for example after moving graph.db), and Cursor will continue launching MCP against the stale path.

Useful? React with 👍 / 👎.

@sakrut
Copy link
Copy Markdown
Owner Author

sakrut commented Mar 3, 2026

@codex re view again

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 299a396ec4

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +120 to +123
else if (!JsonNode.DeepEquals(existingServerObject, serverNode))
{
servers["ai-code-graph"] = serverNode;
shouldWrite = true;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve existing MCP server fields during updates

When .cursor/mcp.json already contains an ai-code-graph server, any difference causes this code to replace the entire server object with a new minimal object (type, command, args). That drops user-defined fields such as env, cwd, or transport options, so running setup-cursor --db ... can silently break previously working MCP setups in projects that rely on those extra settings. Update logic should patch only the relevant fields (for example just args) instead of overwriting the full node.

Useful? React with 👍 / 👎.

@sakrut sakrut merged commit 4d0a836 into main Mar 3, 2026
4 checks 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.

1 participant