From a96a387e6ea71c3a2b0d3bf9fa4f8b93373e2f02 Mon Sep 17 00:00:00 2001 From: liukatkat <84615241+liukatkat@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:35:18 +0000 Subject: [PATCH 1/3] [create-pull-request] automated change --- .mcp.json | 10 ++++++ README.md | 2 +- skills/setup-semgrep-plugin/SKILL.md | 52 ++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 .mcp.json create mode 100644 skills/setup-semgrep-plugin/SKILL.md diff --git a/.mcp.json b/.mcp.json new file mode 100644 index 0000000..e05488a --- /dev/null +++ b/.mcp.json @@ -0,0 +1,10 @@ +{ + "mcpServers": { + "semgrep": { + "command": "semgrep", + "args": [ + "mcp" + ] + } + } +} diff --git a/README.md b/README.md index d8244dc..d5e29ae 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ To use the Semgrep plugin: 1. Install the plugin from the Cursor Plugin Marketplace - 1. Run the `/semgrep-plugin:setup_semgrep_plugin` command. + 1. Run the `/semgrep-plugin:setup-semgrep-plugin` skill. ## Contributing diff --git a/skills/setup-semgrep-plugin/SKILL.md b/skills/setup-semgrep-plugin/SKILL.md new file mode 100644 index 0000000..e2fad92 --- /dev/null +++ b/skills/setup-semgrep-plugin/SKILL.md @@ -0,0 +1,52 @@ +--- +name: setup-semgrep-plugin +description: Set up the Semgrep plugin by installing Semgrep, authenticating, and verifying compatibility +--- +# Setup Semgrep Plugin + +Follow these steps to set up the Semgrep plugin: + +## 1. Install Semgrep + +Check if Semgrep is installed, and install it if not: + +```bash +which semgrep || brew install semgrep +``` + +## 2. Authenticate with Semgrep + +Log in to Semgrep (this will open a browser window): + +```bash +semgrep login --force +``` + +## 3. Install Semgrep Pro Engine + +Install the Pro engine for enhanced scanning capabilities: + +```bash +semgrep install-semgrep-pro || true +``` + +## 4. Verify Installation + +Confirm everything is working: + +```bash +semgrep --pro --version +``` + +## 5. Check Version Compatibility + +Verify your Semgrep version is >= 1.146.0: + +```bash +semgrep --version +``` + +If your version is older than 1.146.0, please update: +```bash +brew upgrade semgrep +``` From 86a82c714bb2d0565bc43d03be8750c498b7e0b7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 26 Feb 2026 22:36:28 +0000 Subject: [PATCH 2/3] chore: bump version to 0.3.0 --- .cursor-plugin/plugin.json | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index cbcba80..c5cbd7b 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "semgrep-plugin", "description": "Plugin by Semgrep. Provides security scanning via MCP, hooks, and skills for Cursor.", - "version": "0.2.0", + "version": "0.3.0", "author": { "name": "Semgrep" }, diff --git a/CHANGELOG.md b/CHANGELOG.md index a4d8959..4849fae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ # Change log +## 0.3.0 +fix: update sync workflow to use .mcp.json for cursor repo ## 0.2.0 chore: sync with the template repo ## 0.1.0 From 55e5840ed001a578ad5c7d906709bd0f1ed7c597 Mon Sep 17 00:00:00 2001 From: Katrina Liu Date: Thu, 26 Feb 2026 14:37:46 -0800 Subject: [PATCH 3/3] remove unecessary file --- skills/setup_semgrep_plugin.md | 52 ---------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 skills/setup_semgrep_plugin.md diff --git a/skills/setup_semgrep_plugin.md b/skills/setup_semgrep_plugin.md deleted file mode 100644 index e704de2..0000000 --- a/skills/setup_semgrep_plugin.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -name: setup_semgrep_plugin -description: Set up the Semgrep plugin by installing Semgrep, authenticating, and verifying compatibility ---- -# Setup Semgrep Plugin - -Follow these steps to set up the Semgrep plugin: - -## 1. Install Semgrep - -Check if Semgrep is installed, and install it if not: - -```bash -which semgrep || brew install semgrep -``` - -## 2. Authenticate with Semgrep - -Log in to Semgrep (this will open a browser window): - -```bash -semgrep login --force -``` - -## 3. Install Semgrep Pro Engine - -Install the Pro engine for enhanced scanning capabilities: - -```bash -semgrep install-semgrep-pro || true -``` - -## 4. Verify Installation - -Confirm everything is working: - -```bash -semgrep --pro --version -``` - -## 5. Check Version Compatibility - -Verify your Semgrep version is >= 1.146.0: - -```bash -semgrep --version -``` - -If your version is older than 1.146.0, please update: -```bash -brew upgrade semgrep -```