Skip to content

Conversation

@ShawkyZ
Copy link
Collaborator

@ShawkyZ ShawkyZ commented Oct 9, 2025

Description

If IDE_CONFIG_PATH is present and the corresponding lsconfig file exists the MCP server can use the lsconfig as token storage. Otherwise it will keep using the default storage location

This will make it possible for the MCP server to not ask for auth if the user has already authenticated in the IDE.

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

@snyk-io
Copy link

snyk-io bot commented Oct 9, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ShawkyZ ShawkyZ changed the title feat: wip shared config mcp feat: MCP to use IDE config Oct 9, 2025
})

_, legacyTokenParseErr := uuid.Parse(snykToken)
isPat := strings.HasPrefix(snykToken, "snyk_uat") || strings.HasPrefix(snykToken, "snyk_sat")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit pick: I would prefer this logic to be moved to a central util.

@ShawkyZ ShawkyZ changed the base branch from main to hotfix/1.1300.1 October 16, 2025 12:11
@ShawkyZ ShawkyZ force-pushed the feat/mcp-use-ls-config branch from a0e71a8 to 52d2cd2 Compare October 16, 2025 12:11
@ShawkyZ ShawkyZ changed the base branch from hotfix/1.1300.1 to main October 16, 2025 12:14
@ShawkyZ ShawkyZ force-pushed the feat/mcp-use-ls-config branch from 52d2cd2 to 8178ea2 Compare October 16, 2025 12:14
@ShawkyZ ShawkyZ force-pushed the feat/mcp-use-ls-config branch from 8178ea2 to 5059f6b Compare October 16, 2025 12:23
@ShawkyZ ShawkyZ changed the base branch from main to hotfix/1.1300.1 October 16, 2025 12:23
@ShawkyZ ShawkyZ merged commit 16d8142 into hotfix/1.1300.1 Oct 16, 2025
13 of 16 checks passed
@ShawkyZ ShawkyZ deleted the feat/mcp-use-ls-config branch October 16, 2025 12:25
ShawkyZ added a commit that referenced this pull request Oct 23, 2025
* feat: MCP to use IDE config (#1014)

* fix: support ignores and improve sast error msg (#1019)

* fix: support ignores and improve sast error msg

---------

Co-authored-by: Abdelrahman Shawki Hassan <[email protected]>

* chore: update to latest GAF

---------

Co-authored-by: Dan Arpino <[email protected]>
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.

4 participants