Conversation
dan-arpino
approved these changes
Jan 29, 2026
| // - ProfileLite: only tools explicitly marked with "lite" in their profiles | ||
| // - ProfileExperimental: all tools (includes everything) | ||
| // - ProfileFull (default): all tools except those marked as experimental-only | ||
| func IsToolInProfile(toolDef SnykMcpToolsDefinition, profile Profile) bool { |
Contributor
There was a problem hiding this comment.
Instead of tagging the tools, what if we had this as a profile level. Lite = Lite only. Full = Full + Lite. Experimental = Experimental + Full + Lite.
It could make this function clearer. It also makes it more consistent were each tool gets a profile level. Right now its a bit weird how "experimental" picks up the others, but "full" doesn't and has to be explicitly set.
Contributor
Author
There was a problem hiding this comment.
I'm thinking of changing this to always explicitly set the profile where a tool should show up.
ifeanyiecheruo
approved these changes
Jan 29, 2026
Contributor
ifeanyiecheruo
left a comment
There was a problem hiding this comment.
Once small non-blocking comment to not hard-code the list of profiles in an error message
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
--profile=<lite|full|experimental>) or environment variable (SNYK_MCP_PROFILE)lite(essential tools),full(default, all non-experimental), andexperimental(all tools including experimental)Motivation
Currently, all MCP tools are always registered when the server starts. This change allows users to:
liteprofile)experimentalprofilefullprofile)Changes
New Files
internal/mcp/profiles.go- Profile types, constants, parsing, and tool filtering logicinternal/mcp/profiles_test.go- Comprehensive tests for profile functionalityModified Files
internal/mcp/tools.go- AddedProfilesfield toSnykMcpToolsDefinitionstruct; updatedaddSnykTools()to filter by profileinternal/mcp/snyk_tools.json- Addedprofilesarray to each tool definitioninternal/mcp/llm_binding.go- Get profile from configuration and pass toaddSnykTools()internal/mcp/tools_test.go- Updated existing tests and added profile integration testspkg/mcp/main.go- Added--profileCLI flagProfile Assignments
litefull(default)litetools + snyk_container_scan, snyk_iac_scan, snyk_sbom_scan, snyk_aibomexperimentalfulltools + snyk_package_healthUsage
Checklist
make generate)make lint-fix)