Documentation
¶
Index ¶
- func AgentNameFromManifest(projectDir string) string
- func CleanupRegistryDir(projectDir string, verbose bool) error
- func ConstructImageName(configuredImage, agentName string) string
- func ConstructMCPServerImageName(agentName, serverName string) string
- func EnsureMcpServerDirectories(projectDir string, manifest *common.AgentManifest, verbose bool) error
- func EnvVarsFromManifest(manifest *common.AgentManifest) []string
- func LoadManifest(projectDir string) (*common.AgentManifest, error)
- func RegenerateDockerCompose(projectDir string, manifest *common.AgentManifest, version string, ...) error
- func RegenerateMcpTools(projectDir string, manifest *common.AgentManifest, verbose bool) error
- func ResolveProjectDir(projectDir string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentNameFromManifest ¶
AgentNameFromManifest attempts to read the agent name, falling back to directory name.
func CleanupRegistryDir ¶
CleanupRegistryDir removes the generated registry directory if it exists. This keeps registry-resolved MCP server artifacts from sticking around across runs.
func ConstructImageName ¶
ConstructImageName builds an image reference using defaults when not provided.
func ConstructMCPServerImageName ¶
ConstructMCPServerImageName builds the image name for a command MCP server.
func EnsureMcpServerDirectories ¶
func EnsureMcpServerDirectories(projectDir string, manifest *common.AgentManifest, verbose bool) error
EnsureMcpServerDirectories creates config.yaml and Dockerfile for command-type MCP servers. For registry-resolved servers, srv.Build contains the folder path (e.g., "registry/<name>"). For locally-defined servers, srv.Build is empty and srv.Name is used as the folder.
func EnvVarsFromManifest ¶
func EnvVarsFromManifest(manifest *common.AgentManifest) []string
EnvVarsFromManifest extracts environment variables referenced in MCP headers.
func LoadManifest ¶
func LoadManifest(projectDir string) (*common.AgentManifest, error)
LoadManifest loads the agent manifest from the project directory.
func RegenerateDockerCompose ¶
func RegenerateDockerCompose(projectDir string, manifest *common.AgentManifest, version string, verbose bool) error
RegenerateDockerCompose rewrites docker-compose.yaml using the embedded template.
func RegenerateMcpTools ¶
func RegenerateMcpTools(projectDir string, manifest *common.AgentManifest, verbose bool) error
RegenerateMcpTools updates the generated mcp_tools.py file based on manifest state.
func ResolveProjectDir ¶
ResolveProjectDir resolves the project directory path
Types ¶
This section is empty.