mcp

package
v0.0.0-...-fa6e463 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mcp provides Model Context Protocol server implementation for netcheck.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(registry *CheckerRegistry) error

Types

type CheckFunction

type CheckFunction func(input *CheckToolInput) (*CheckToolOutput, error)

type CheckToolInput

type CheckToolInput struct {
	GatewayIP         string `json:"gateway_ip,omitempty"`
	Ports             []int  `json:"ports,omitempty"`
	CheckDefaultCreds bool   `json:"check_default_creds,omitempty"`
	EnumerateMappings bool   `json:"enumerate_mappings,omitempty"`
	Comprehensive     bool   `json:"comprehensive,omitempty"`
}

type CheckToolOutput

type CheckToolOutput struct {
	Issues  []Issue `json:"issues"`
	Summary string  `json:"summary"`
	Report  string  `json:"report"`
}

type CheckerRegistry

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

func NewCheckerRegistry

func NewCheckerRegistry() *CheckerRegistry

func (*CheckerRegistry) Register

func (r *CheckerRegistry) Register(name string, fn CheckFunction)

type Issue

type Issue struct {
	Severity    string `json:"severity"`
	Description string `json:"description"`
	Details     string `json:"details"`
}

Jump to

Keyboard shortcuts

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