Documentation
¶
Index ¶
- Variables
- func AdminRequest(ctx context.Context, store *Store, name string, opts AdminRequestOptions) error
- func Connect(ctx context.Context, store *Store, name string, opts ConnectOptions) error
- func Login(ctx context.Context, store *Store, opts LoginOptions) error
- type AdminRequestOptions
- type ConnectOptions
- type LoginOptions
- type Status
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoginRequired = errors.New("login required; run mcphub-cli login for this profile") ErrProfileChanged = errors.New("profile was logged in again; restart the MCP connection") )
Functions ¶
func AdminRequest ¶ added in v1.4.0
AdminRequest sends one management operation. Only a 401 can cause one retry; network failures never replay writes. ETags are emitted separately to stderr.
Types ¶
type AdminRequestOptions ¶ added in v1.4.0
type ConnectOptions ¶
type ConnectOptions struct {
Input io.ReadCloser
Output io.WriteCloser
HTTPClient *http.Client
}
type LoginOptions ¶
Click to show internal directories.
Click to hide internal directories.