behavioral

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

Scanner scans MCP server source code using mcp-scanner's behavioral mode. It clones the source repository, runs `mcp-scanner behavioral --raw`, and maps the findings to the scanner result format.

func New

func New(cfg scannerconfig.Config) *Scanner

New creates a behavioral Scanner with the given config.

func (*Scanner) Name

func (s *Scanner) Name() string

Name returns the scanner name.

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, record *corev1.Record) (*types.ScanResult, error)

Scan extracts the source-code URL from the record, clones it, runs mcp-scanner behavioral --raw, and returns mapped findings.

Jump to

Keyboard shortcuts

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