projection

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnabledServerIDs

func EnabledServerIDs(servers []config.MCPServer, client string) []string

EnabledServerIDs returns sorted MCP server ids enabled for the client.

Types

type Approvals

type Approvals struct {
	AllowCommands bool
	AllowMCP      bool
	Commands      []string
}

Approvals captures the resolved approvals policy and allowlist.

func BuildApprovals

func BuildApprovals(cfg config.Config, commands []string) Approvals

BuildApprovals resolves approvals.mode into per-feature flags.

type EnvVarResolver

type EnvVarResolver = config.EnvVarReplacer

EnvVarResolver returns a replacement string for a resolved env var.

type ResolvedMCPServer

type ResolvedMCPServer struct {
	ID        string
	Transport string
	URL       string
	Headers   map[string]string
	Command   string
	Args      []string
	Env       map[string]string
}

ResolvedMCPServer is a normalized MCP server with env substitution applied.

func ResolveMCPServers

func ResolveMCPServers(servers []config.MCPServer, env map[string]string, client string, resolver EnvVarResolver) ([]ResolvedMCPServer, error)

ResolveMCPServers filters and resolves MCP servers for a client.

Jump to

Keyboard shortcuts

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