Repository navigation
feat(dir): add mcp-cursor export format - #1767
Merged
Merged
Conversation
Adds a new --format mcp-cursor option to dirctl export that emits
Cursor's mcp.json configuration shape ({"mcpServers": {name:
{command/args/env or url/headers}}}, used by .cursor/mcp.json and
~/.cursor/mcp.json), mirroring the existing mcp-ghcopilot formatter
end to end:
- api/exportfmt/mcp_cursor.go: formatter + RecordToCursor translator
for the OASF 1.0.0 integration/mcp connections format (stdio,
streamable-http, sse; remote servers emit url without a type field,
matching Cursor's transport inference)
- cli/cmd/export: batch exporter merging matched servers into one
mcp.json, format registration, help text
- tests mirroring the mcp-ghcopilot formatter and batch tests
- docs: CLI reference + import/export component page
Refs agntcy#1385
Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Conor Bronsdon <[email protected]>
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
ramizpolic
approved these changes
Jul 8, 2026
ramizpolic
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks @conorbronsdon!
conorbronsdon
marked this pull request as ready for review
July 8, 2026 18:11
lgecse
force-pushed
the
feat/mcp-export-cursor
branch
from
July 9, 2026 10:30
7fee641 to
da2825c
Compare
lgecse
force-pushed
the
feat/mcp-export-cursor
branch
2 times, most recently
from
July 9, 2026 10:51
17a161b to
8c0bffc
Compare
Signed-off-by: Laszlo Gecse <[email protected]>
lgecse
force-pushed
the
feat/mcp-export-cursor
branch
from
July 9, 2026 11:25
8c0bffc to
88be84f
Compare
Signed-off-by: Laszlo Gecse <[email protected]>
lgecse
force-pushed
the
feat/mcp-export-cursor
branch
from
July 9, 2026 11:27
88be84f to
4d21f5c
Compare
Signed-off-by: Laszlo Gecse <[email protected]>
ramizpolic
approved these changes
Jul 9, 2026
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
--format mcp-cursortodirctl export, closing #1385. Sibling of #1766 — the two branch from the same base, and whichever merges second takes a trivial keep-both-lines conflict in the shared registration lines.Emits Cursor's
mcp.jsonshape, verified against cursor.com/docs/context/mcp:typefield anywhere — Cursor infers transport from the config shape (command= stdio,url= remote). This is the main divergence from the Claude Code format in feat(dir): add mcp-claudecode export format #1766.default_valueuse Cursor's documented${env:NAME}interpolation (note: different syntax from Claude Code's${NAME}).envFileand OAuthauthfields aren't emitted; OASF records carry no data for them.Batch export (
--output-dir) merges all matched servers into onemcp.json, mirroringmcp-ghcopilot. Same scope notes as #1766: translator kept dir-local (exportfmt.RecordToCursor) rather than in oasf-sdk, happy to upstream as a follow-up; issue Step 2.4'smcp/tools/export_record.godoesn't exist on current main; OASF 1.0.0connectionsonly.Verified:
go build ./...plus the exportfmt and cmd/export test suites green on both modules. Commits are DCO signed.