From 16d458cb636398ca9a0a4876390eb5f6a3e8dd58 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 3 Jun 2025 13:28:52 +0100 Subject: [PATCH] feat(mcp/context7): add context7 MCP server for Cursor and VSCode --- cursor/mcp.json | 8 ++++++++ settings.json | 19 +++++++++++++++++++ siren | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 cursor/mcp.json diff --git a/cursor/mcp.json b/cursor/mcp.json new file mode 100644 index 0000000..5d54ff6 --- /dev/null +++ b/cursor/mcp.json @@ -0,0 +1,8 @@ +{ + "mcpServers": { + "context7": { + "command": "mise", + "args": ["x", "npm:@upstash/context7-mcp", "--", "context7-mcp"] + } + } +} diff --git a/settings.json b/settings.json index 934868c..c958d0a 100644 --- a/settings.json +++ b/settings.json @@ -275,6 +275,25 @@ ], // // =========================================================================== + // MARK: MCP Servers (VSCode) + // =========================================================================== + // + "mcp": { + "servers": { + "context7": { + "type": "stdio", + "command": "mise", + "args": [ + "x", + "npm:@upstash/context7-mcp", + "--", + "context7-mcp" + ] + } + } + }, + // + // =========================================================================== // MARK: GitHub // =========================================================================== // Extensions: diff --git a/siren b/siren index 1711e0c..e7ff812 100755 --- a/siren +++ b/siren @@ -169,6 +169,11 @@ do_symlink() { backup_and_link "${SCRIPT_DIR}/${path}" "${config_dir}/${path}" done + # Conditionally add mcp.json for cursor + if [[ "${SETUP_EDITOR}" == "cursor" ]]; then + STATIC_SYMLINKS["cursor/mcp.json"]="${HOME}/.cursor/mcp.json" + fi + # Create static symlinks to custom locations for source in "${!STATIC_SYMLINKS[@]}"; do target="${STATIC_SYMLINKS[${source}]}"