config

package
v0.42.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StateFile

type StateFile struct {
	// Python configuration state
	PythonPath         string `json:"python_path,omitempty"`
	DoclingAvailable   bool   `json:"docling_available"`
	DoclingLastChecked int64  `json:"docling_last_checked,omitempty"` // Unix timestamp
	// contains filtered or unexported fields
}

StateFile represents the cached state for mcp-devtools

func GetGlobalState

func GetGlobalState() *StateFile

GetGlobalState returns the singleton global state

func (*StateFile) GetPythonPath

func (s *StateFile) GetPythonPath() (string, bool)

GetPythonPath returns the cached Python path

func (*StateFile) IsStale

func (s *StateFile) IsStale() bool

IsStale checks if the cached state is stale (older than 24 hours)

func (*StateFile) Save

func (s *StateFile) Save() error

Save saves the global state to disk

func (*StateFile) SetPythonPath

func (s *StateFile) SetPythonPath(path string, doclingAvailable bool) error

SetPythonPath sets the Python path and saves the state

Jump to

Keyboard shortcuts

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