feat(mcp/context7): add context7 MCP server for Cursor and VSCode

This commit is contained in:
Jim Myhrberg
2025-06-03 13:28:52 +01:00
parent cac7469394
commit 16d458cb63
3 changed files with 32 additions and 0 deletions

8
cursor/mcp.json Normal file
View File

@@ -0,0 +1,8 @@
{
"mcpServers": {
"context7": {
"command": "mise",
"args": ["x", "npm:@upstash/context7-mcp", "--", "context7-mcp"]
}
}
}

View File

@@ -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:

5
siren
View File

@@ -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}]}"