Documentation
¶
Index ¶
- Constants
- func AllMCPServers(ctx context.Context, store runtimetypes.Store) ([]*runtimetypes.MCPServer, error)
- func AllRemoteTools(ctx context.Context, store runtimetypes.Store) ([]*runtimetypes.RemoteTools, error)
- func Allowlist(ctx context.Context, store runtimetypes.Store, cwd, sessionID string, ...) ([]string, error)
- func Disabled(ctx context.Context, store runtimetypes.Store, sessionID string) []string
- func ForgetSession(ctx context.Context, store runtimetypes.Store, sessionID string)
- func SessionHidden(ctx context.Context, store runtimetypes.Store, sessionID string) []string
- func SetEnabled(ctx context.Context, store runtimetypes.Store, sessionID, name string, ...) error
- func SetHidden(ctx context.Context, store runtimetypes.Store, workspace, connector string, ...) error
- func SetSessionToolHidden(ctx context.Context, store runtimetypes.Store, ...) error
- type Connector
- type Filter
- type HiddenTools
- type Service
- type Tool
Constants ¶
View Source
const ( KindBuiltin = "builtin" KindMCP = "mcp" KindOpenAPI = "openapi" ScopeEverywhere = "everywhere" ScopeWorkspace = "workspace" ScopeSession = "session" ScopeAgent = "agent" StatusReady = "ready" StatusNeedsSignIn = "needs_sign_in" )
Variables ¶
This section is empty.
Functions ¶
func AllMCPServers ¶
func AllMCPServers(ctx context.Context, store runtimetypes.Store) ([]*runtimetypes.MCPServer, error)
func AllRemoteTools ¶
func AllRemoteTools(ctx context.Context, store runtimetypes.Store) ([]*runtimetypes.RemoteTools, error)
func ForgetSession ¶
func ForgetSession(ctx context.Context, store runtimetypes.Store, sessionID string)
func SessionHidden ¶
func SetEnabled ¶
func SetSessionToolHidden ¶
Types ¶
type Connector ¶
type Connector struct {
Name string `json:"name"`
Label string `json:"label"`
Kind string `json:"kind"`
ID string `json:"id,omitempty"`
Transport string `json:"transport,omitempty"`
Command string `json:"command,omitempty"`
Args []string `json:"args,omitempty"`
URL string `json:"url,omitempty"`
AuthType string `json:"authType,omitempty"`
Scope string `json:"scope"`
Workspace string `json:"workspace,omitempty"`
Status string `json:"status"`
Problem string `json:"problem,omitempty"`
Tools []Tool `json:"tools"`
Enabled *bool `json:"enabled,omitempty"`
Hidden map[string][]string `json:"hidden,omitempty"`
HiddenBySettings []string `json:"hiddenBySettings,omitempty"`
HiddenInChat []string `json:"hiddenInChat,omitempty"`
}
type HiddenTools ¶
type HiddenTools struct {
Everywhere []string `json:"everywhere"`
Workspaces map[string][]string `json:"workspaces"`
}
func ListHidden ¶
func ListHidden(ctx context.Context, store runtimetypes.Store) HiddenTools
Click to show internal directories.
Click to hide internal directories.