api

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 71 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMCPStdio added in v0.5.1

func RunMCPStdio(version, commit, buildTime string)

RunMCPStdio initialises only the connector layer (DB + connectors bootstrap) and serves the MCP JSON-RPC protocol over stdin/stdout. Intended for local clients that spawn wick as a child process (Claude Desktop, Cursor, etc.). No auth — all connectors are visible as a synthetic local-admin identity.

Types

type Middleware

type Middleware func(http.Handler) http.Handler

type Server

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

func NewServer

func NewServer() *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context, port int) error

Run starts the HTTP server. Cancel ctx to trigger a graceful shutdown; returns nil on clean stop or the error from ListenAndServe / Shutdown otherwise. CLI callers wrap with signal.NotifyContext; in-process callers (system tray) cancel from the UI.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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