multica-ai/multica · error
invalid --protocol-family %q: must be one of %s
Error message
invalid --protocol-family %q: must be one of %s
What it means
Error "invalid --protocol-family %q: must be one of %s" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_runtime_profile.go:124
// argv-aware command-line parser here too.
runtimeProfileUpdateCmd.Flags().Bool("enabled", true, "Enable or disable the profile")
runtimeProfileUpdateCmd.Flags().String("output", "json", "Output format: table or json")
// set-path
runtimeProfileSetPathCmd.Flags().String("path", "", "Absolute path to the executable on this machine (required)")
}
// runtimeProfilesPath builds the workspace-scoped collection path.
func runtimeProfilesPath(workspaceID string) string {
return fmt.Sprintf("/api/workspaces/%s/runtime-profiles", workspaceID)
}
// validateProtocolFamily checks a protocol family against the canonical agent
// whitelist client-side so an obvious typo fails fast with a helpful list
// instead of an opaque server 400.
func validateProtocolFamily(family string) error {
if !agent.IsSupportedType(family) {
return fmt.Errorf("invalid --protocol-family %q: must be one of %s",
family, strings.Join(agent.SupportedTypes, ", "))
}
return nil
}
// NOTE: a --visibility flag is intentionally NOT exposed in v1. The server
// forces every profile to 'workspace' because the read paths do not yet
// enforce 'private' (exposing it would leak "private" profiles). Re-add once
// creator-visibility filtering exists. Follow-up: MUL-3308.
func runRuntimeProfileList(cmd *cobra.Command, _ []string) error {
client, err := newAPIClient(cmd)
if err != nil {
return err
}
workspaceID, err := requireWorkspaceID(cmd)
if err != nil {
return errView on GitHub (pinned to 2c0912b6ec)
Solutions
- Use one of the supported protocol families listed in the message.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_runtime_profile.go:124 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/418aefb30e73413d.
Report an issue: GitHub.