mcptools

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseAllForwards added in v0.2.0

func CloseAllForwards()

CloseAllForwards releases all active forwards. Safe to call during shutdown.

func RegisterContext

func RegisterContext(s *server.MCPServer, reg *registry.Registry)

func RegisterDeploy

func RegisterDeploy(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, creds *credentials.Store, agentToken string)

func RegisterDiagnostics

func RegisterDiagnostics(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, auditLog *audit.Log)

func RegisterExecute

func RegisterExecute(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, auditLog *audit.Log)

func RegisterForward added in v0.2.0

func RegisterForward(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

RegisterForward wires the forward_port / stop_forward / list_forwards tools.

func RegisterHistory

func RegisterHistory(s *server.MCPServer, auditLog *audit.Log)

func RegisterImportExport

func RegisterImportExport(s *server.MCPServer, reg *registry.Registry)

func RegisterInventory

func RegisterInventory(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

func RegisterJobs added in v0.2.0

func RegisterJobs(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

RegisterJobs exposes the background-job tools (detached executions).

func RegisterMultiNode

func RegisterMultiNode(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, auditLog *audit.Log)

func RegisterNodeOps

func RegisterNodeOps(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

func RegisterPackage

func RegisterPackage(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

func RegisterPatch

func RegisterPatch(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, auditLog *audit.Log, patchCfg *PatchConfig)

func RegisterPortal added in v0.2.0

func RegisterPortal(s *server.MCPServer)

RegisterPortal exposes get_portal_url so the AI client can hand the operator a clickable link to the local operations portal without grepping logs.

func RegisterProcess

func RegisterProcess(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

func RegisterSchedule

func RegisterSchedule(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool, auditLog *audit.Log)

func RegisterTopology

func RegisterTopology(s *server.MCPServer, reg *registry.Registry)

func RegisterTransfer

func RegisterTransfer(s *server.MCPServer, reg *registry.Registry, pool *agentclient.Pool)

func SetHealthMonitor

func SetHealthMonitor(m *healthmon.Monitor)

SetHealthMonitor stores the health monitor for use by all tool handlers.

func SetOpsRegistry

func SetOpsRegistry(r *ops.Registry)

SetOpsRegistry registers a process-wide operations registry. Tool handlers that opt in via beginOp will record themselves there for the local portal. Safe to leave nil; in that case beginOp is a no-op pass-through.

func SetPortalURL added in v0.2.0

func SetPortalURL(u string)

SetPortalURL records the bookmarkable portal URL for get_portal_url to return. Pass "" to indicate the portal is unavailable.

Types

type PatchConfig

type PatchConfig struct {
	SfpCopySource string // Network share or local path to sfpcopy.exe (dev machine accessible)
	CacheDir      string // Local cache dir for sfpcopy.exe on the dev machine
}

PatchConfig holds configurable paths for patching.

func NewPatchConfig

func NewPatchConfig(configDir string) *PatchConfig

Jump to

Keyboard shortcuts

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