Skip to content

Conversation

@ShawkyZ
Copy link
Contributor

@ShawkyZ ShawkyZ commented Nov 26, 2025

🚧 🚧 🚧 🚧 🚧 🚧 WIP 🚧 🚧 🚧 🚧 🚧 🚧

Description

Added functionality to configure MCP server for MCP hosts + rules
This functionality will be shared from the language-server as well for SecureAtInception configuration

For Claude
npx -y snyk@latest mcp --configure=claude-cli
For Gemini
npx -y snyk@latest mcp --configure=gemini-cli

optional arg: --rule-type=<smart-apply,always-apply> Default: always-apply

Checklist

  • Tests added and all succeed
  • Regenerated mocks, etc. (make generate)
  • Linted (make lint-fix)
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

_ = userInterface.Output(fmt.Sprintf("📋 Writing local rules (%s) to workspace: %s", ruleType, workspacePath))
}

err = writeLocalRules(workspacePath, ideConf.localRulesPath, rulesContent, logger)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local rule files should be ignored

@ShawkyZ ShawkyZ changed the title feat: added configure command feat: added configure command [AG-58] Nov 26, 2025
{
name: "source without markers",
source: "existing content\n",
expected: "existing content\n\n<!--# BEGIN SNYK GLOBAL RULE-->\ntest content\n<!--# END SNYK GLOBAL RULE-->\n",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your missing a space after RULE here, which I think is why these are failing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants