Bug Description:
Cursor is automatically and incorrectly modifying URLs in .mdc
files by changing https://
to mdc:https:/
. This creates invalid URLs and breaks documentation links.
Example from planningmap.mdc file:
- Original URL:
https://gis.sauevald.ee/arcgis/rest/services
- Modified by Cursor to:
mdc:https:/gis.sauevald.ee/arcgis/rest/services
The issue affects all URLs in .mdc
files, making them invalid and breaking external links in documentation.
Steps to Reproduce:
- Create or open a
.mdc
file in Cursor - Add a URL starting with
https://
- Save the file
- Observe that Cursor has automatically prefixed the URL with
mdc:
and removed a forward slash
Example from planningmap.mdc:
### ArcGIS Services
The PlanningMap component can display layers from the following ArcGIS REST services:
- **Main Services Directory**: [https://gis.sauevald.ee/arcgis/rest/services](mdc:https:/gis.sauevald.ee/arcgis/rest/services)
Environment:
- OS: macOS 24.4.0
- Cursor Version: Latest (as of April 2025)
Impact:
Medium severity - While not preventing the use of Cursor, this issue:
- Breaks documentation links
- Creates invalid URLs
- Requires manual correction of URLs
- Affects documentation readability and maintenance
Forum Check:
I’ve checked the forum and haven’t found any existing reports of this specific URL modification issue in .mdc
files. There is an open question available related to the same issue: What is "mdc:" link schema?
Additional Notes:
- The issue appears to be consistent across all
.mdc
files - The modification happens automatically upon saving
- The pattern is consistent:
https://
becomesmdc:https:/
(note the missing slash) - This appears to be an unintended URL transformation specific to
.mdc
file handling