mcpstatus

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientStateConfigured = "configured"
	ClientStateMissing    = "missing"
	ClientStateUnknown    = "unknown"

	DriftDeclaredMissing      = "declared_missing"
	DriftConfiguredUndeclared = "configured_undeclared"
	DriftConfigMismatch       = "config_mismatch"
	DriftUnknownClientState   = "unknown_client_state"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Name      string   `json:"name"`
	Path      string   `json:"path"`
	State     string   `json:"state"`
	Projected []string `json:"projected"`
	Drift     []Drift  `json:"drift,omitempty"`
}

type Drift

type Drift struct {
	Kind    string `json:"kind"`
	Client  string `json:"client,omitempty"`
	Server  string `json:"server,omitempty"`
	Path    string `json:"path,omitempty"`
	Message string `json:"message"`
}

type InspectOptions

type InspectOptions struct {
	WorkDir string
}

type Report

type Report struct {
	ProjectRoot  string   `json:"project_root"`
	ManifestPath string   `json:"manifest_path,omitempty"`
	Definitions  string   `json:"definitions_path,omitempty"`
	Declarations []string `json:"declarations"`
	Servers      []Server `json:"servers"`
	Clients      []Client `json:"clients"`
	Drift        []Drift  `json:"drift,omitempty"`
	Summary      Summary  `json:"summary"`
}

func Inspect

func Inspect(opts InspectOptions) (Report, error)

type Server

type Server struct {
	Name     string   `json:"name"`
	Declared bool     `json:"declared"`
	Defined  bool     `json:"defined"`
	Clients  []string `json:"clients"`
	Drift    []Drift  `json:"drift,omitempty"`
}

type Summary

type Summary struct {
	Declared int `json:"declared"`
	Defined  int `json:"defined"`
	Clients  int `json:"clients"`
	Drift    int `json:"drift"`
}

Jump to

Keyboard shortcuts

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