shared

package
v1.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ToolNameParam       = "tool"
	RuleTypeParam       = "rule-type"
	RuleTypeSmart       = "smart-apply"
	RuleTypeAlwaysApply = "always-apply"

	RulesScopeParam          = "rules-scope"
	WorkspacePathParam       = "workspace"
	ServerNameKey            = "Snyk"
	McpRegisterCallbackParam = "mcp-register-callback" // Callback function to register MCP server. Used from Language Server to register MCP server using native IDE API.
	RemoveParam              = "rm"
	ConfigureMcpParam        = "configure-mcp"   // Flag to enable/disable MCP server configuration
	ConfigureRulesParam      = "configure-rules" // Flag to enable/disable rules configuration

	RulesGlobalScope    = "global"
	RulesWorkspaceScope = "workspace"

	// MCP server configuration
	McpServerCommandPattern = "/snyk-"
	McpServerStdioArg1      = "mcp"
	McpServerStdioArg2      = "-t"
	McpServerStdioArg3      = "stdio"
)
View Source
const (
	TrustedFoldersParam        = "trusted-folders"
	IdeConfigPathParam         = "ide-config-path"
	OutputDirParam      string = "output-dir"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type McpEnvMap

type McpEnvMap map[string]string

type McpRegisterCallback

type McpRegisterCallback func(cmd string, args []string, env map[string]string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL