multica-ai/multica · error

name may only contain letters, digits, hyphens, and undersco

Error message

name may only contain letters, digits, hyphens, and underscores

What it means

Error "name may only contain letters, digits, hyphens, and underscores" thrown in multica-ai/multica.

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)

Solutions

  1. Use only letters, digits, hyphens, and underscores in the MCP server name.

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.