config

package
v0.59.134 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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