Skip to content

fix(mcp): sync .cursor/mcp.json with dotagents output#113512

Merged
joshuarli merged 1 commit into
masterfrom
hubertdeng/fix-cursor-mcp-json
Apr 21, 2026
Merged

fix(mcp): sync .cursor/mcp.json with dotagents output#113512
joshuarli merged 1 commit into
masterfrom
hubertdeng/fix-cursor-mcp-json

Conversation

@hubertdeng123

@hubertdeng123 hubertdeng123 commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Remove the "type": "http" field from each entry in .cursor/mcp.json so the committed file matches what dotagents' cursor generator produces.

dotagents' cursor serializer omits type and relies on Cursor's URL-based transport auto-detection (see getsentry/dotagents src/agents/definitions/cursor.ts). Because the file here included type, every devenv sync regenerated it and left the working tree dirty.

error: Your local changes to the following files would be overwritten by checkout:
	.cursor/mcp.json

The committed .cursor/mcp.json had "type": "http" on each server, but
dotagents' cursor generator omits the type field (relying on Cursor's
auto-detection from URL). Every `devenv sync` run therefore left the
working tree dirty, which broke `git checkout <branch>` on Coder
devboxes whose baked image had already run dotagents during packer build.
@joshuarli
joshuarli merged commit b3b366b into master Apr 21, 2026
48 checks passed
@joshuarli
joshuarli deleted the hubertdeng/fix-cursor-mcp-json branch April 21, 2026 05:10
@github-actions github-actions Bot locked and limited conversation to collaborators May 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants