multica-ai/multica · error
name may only contain letters, digits, hyphens, and…
Error message
name may only contain letters, digits, hyphens, and underscores
What it means
Validation guard in validateWorkspaceMcpServerName: a rune in the name fell outside [a-zA-Z0-9-_]. Names become mount identifiers, so spaces, dots, and unicode are rejected. Enforced identically on CreateWorkspaceMcpServer and UpdateWorkspaceMcpServer.
Solutions
- Use only letters, digits, hyphens, and underscores in the MCP server name.
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at server/internal/handler/workspace_mcp.go:189 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/659dc7a57651aa1d.
Report an issue: GitHub.
Appendix: source
Thrown at server/internal/handler/workspace_mcp.go:189
}
if len(entry) == 0 {
return errors.New("config must not be empty")
}
return nil
}
// validateWorkspaceMcpServerName checks a server name. The name is what the
// runtime mounts the server under and what an agent's own config collides
// with, so it follows the same rule the agent settings dialog enforces.
func validateWorkspaceMcpServerName(name string) error {
if name == "" {
return errors.New("name is required")
}
for _, r := range name {
switch {
case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z', r >= '0' && r <= '9', r == '-', r == '_':
default:
return errors.New("name may only contain letters, digits, hyphens, and underscores")
}
}
return nil
}
View on GitHub (pinned to 2c0912b6ec)