Documentation
¶
Overview ¶
Package behavioral compares what an MCP capability says it does against what its handler actually reaches, using only the graph the source pass already built: no LLM, just a fixed vocabulary matched against the description and a fixed catalogue of filesystem/network/process/credential calls matched against everything the handler statically reaches. Reachability is co-occurrence evidence, not a traced dataflow proof.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Analyzer ¶
type Analyzer struct{}
func (*Analyzer) Analyze ¶
func (*Analyzer) Analyze(ctx context.Context, target model.Target, ac *analyzer.AnalysisContext) model.AnalyzerResult
func (*Analyzer) Describe ¶
func (*Analyzer) Describe() analyzer.Description
type HandlerBehavior ¶ added in v1.2.0
type HandlerBehavior struct {
Network bool `json:"network"`
Filesystem bool `json:"filesystem"`
Process bool `json:"process"`
Credentials bool `json:"credentials"`
SensitivePaths []string `json:"sensitive_paths,omitempty"`
EnvVars []string `json:"env_vars,omitempty"`
URLs []string `json:"urls,omitempty"`
ReachedFunctions int `json:"reached_functions"`
ReachesUnresolved bool `json:"reaches_unresolved_calls"`
}
HandlerBehavior is what a capability's handler can reach through the call graph: the categories the behavioral checks compare against the description, and the concrete evidence behind them